MIGPT
基于API流式对话的低延迟版MIGPT
简单介绍
本项目利用了OpenAI官方API的原生流式传输对话方式,无需等待,即刻对话!
在作者的笔记本上,实测从提问到回答的时间仅不到1.5秒(当然,这个时间也取决于你的梯子和网络质量)。
* 点此链接观看2分半的测试视频
注意:本项目因采用了流式传输,暂时不支持LX04、L05B和L05C型号。如您的音箱是该型号,请使用xiaogpt。
使用方法
分为3个steps:
step 1 :
在项目路径执行pip install -r requirements.txt安装需要的依赖。 如果没有C++编译环境,则安装tiktoken时会报如下错误:distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools")。
解决方法:
(1) 本地执行pip debug --verbose查看当前平台支持的版本,然后在此链接中找到对应版本的whl文件并下载。
(2) 在whl文件同级目录执行pip install "whl全名带后缀",注意:不要修改原始whl文件的名称。
step 2 :
在MIGPT.py中填写小米账号、密码、API Key和音箱型号。
step 3 :
科学上网后,运行MIGPT.py文件即可。
使用技巧
- 运行过程中,可用“打开/关闭高级对话"控制是否打开ChatGPT。
- 当ChatGPT正在回答问题时,可用“闭嘴”或“停止”终止回答。
- 可随时提问新的问题打断ChatGPT的回答。
致谢引用
联系作者
请联系QQ : 2312163474
Metadata
Release files for MIGPT-pro 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| migpt_pro-1.1.5.tar.gz | 4.2 kB | Without provenance | Details for migpt_pro-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MIGPT_pro-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for MIGPT_pro-1.1.5-py3-none-any.whl |
Total release size: 7.8 kB
Release files / migpt_pro-1.1.5.tar.gz
| Download URL | migpt_pro-1.1.5.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f4fc0e78bbec1085a4895f45588397c361a2a002dc8b3c31bac08aac2b4c350
|
|
BLAKE2b-256 checksum How to use checksums |
b675c862f68c86a0dd138a32f0868f704fdfb824ebde54083407d2f3784376ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Release files / MIGPT_pro-1.1.5-py3-none-any.whl
| Download URL | MIGPT_pro-1.1.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c51e67419b1e79714bd2a98b52da85d2558390b8a8df97bee0e271bc8f12d86f
|
|
BLAKE2b-256 checksum How to use checksums |
d6d1d7adb43093d7a542c4550c8605fd9c7d03b13375e30ccb7d9312434b71e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for MIGPT-pro 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.