Skip to main content

MIGPT

基于API流式对话的低延迟版MIGPT

简单介绍

本项目利用了OpenAI官方API的原生流式传输对话方式,无需等待,即刻对话!

在作者的笔记本上,实测从提问到回答的时间仅不到1.5秒(当然,这个时间也取决于你的梯子和网络质量)。

* 点此链接观看2分半的测试视频

image

注意:本项目因采用了流式传输,暂时不支持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文件即可。

使用技巧

  1. 运行过程中,可用“打开/关闭高级对话"控制是否打开ChatGPT。
  2. 当ChatGPT正在回答问题时,可用“闭嘴”或“停止”终止回答。
  3. 可随时提问新的问题打断ChatGPT的回答。

致谢引用

联系作者

请联系QQ : 2312163474

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

migpt_pro-1.1.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MIGPT_pro-1.1.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file migpt_pro-1.1.5.tar.gz.

File metadata

  • Download URL: migpt_pro-1.1.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.2

File hashes

Hashes for migpt_pro-1.1.5.tar.gz
Algorithm Hash digest
SHA256 3f4fc0e78bbec1085a4895f45588397c361a2a002dc8b3c31bac08aac2b4c350
MD5 29c19cf0dcb8e78d8f28ef4bed40582d
BLAKE2b-256 b675c862f68c86a0dd138a32f0868f704fdfb824ebde54083407d2f3784376ea

See more details on using hashes here.

File details

Details for the file MIGPT_pro-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: MIGPT_pro-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.2

File hashes

Hashes for MIGPT_pro-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c51e67419b1e79714bd2a98b52da85d2558390b8a8df97bee0e271bc8f12d86f
MD5 c6abd341dfc2e96a51ac32208cd9da5b
BLAKE2b-256 d6d1d7adb43093d7a542c4550c8605fd9c7d03b13375e30ccb7d9312434b71e1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page