xiaogpt 1.91__py3-none-any.whl → 1.93__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xiaogpt/cli.py +0 -1
- xiaogpt/config.py +7 -0
- xiaogpt/xiaogpt.py +2 -1
- {xiaogpt-1.91.dist-info → xiaogpt-1.93.dist-info}/METADATA +3 -4
- {xiaogpt-1.91.dist-info → xiaogpt-1.93.dist-info}/RECORD +8 -8
- {xiaogpt-1.91.dist-info → xiaogpt-1.93.dist-info}/WHEEL +0 -0
- {xiaogpt-1.91.dist-info → xiaogpt-1.93.dist-info}/entry_points.txt +0 -0
- {xiaogpt-1.91.dist-info → xiaogpt-1.93.dist-info}/licenses/LICENSE +0 -0
xiaogpt/cli.py
CHANGED
xiaogpt/config.py
CHANGED
xiaogpt/xiaogpt.py
CHANGED
@@ -21,6 +21,7 @@ from xiaogpt.config import (
|
|
21
21
|
LATEST_ASK_API,
|
22
22
|
MI_ASK_SIMULATE_DATA,
|
23
23
|
WAKEUP_KEYWORD,
|
24
|
+
TTS_CALL_NAME,
|
24
25
|
Config,
|
25
26
|
)
|
26
27
|
from xiaogpt.tts import TTS, EdgeTTS, MiTTS
|
@@ -336,7 +337,7 @@ class MiGPT:
|
|
336
337
|
)
|
337
338
|
|
338
339
|
async def run_forever(self):
|
339
|
-
ask_name = self.config.bot.upper()
|
340
|
+
ask_name = TTS_CALL_NAME.get(self.config.bot, self.config.bot.upper())
|
340
341
|
async with ClientSession() as session:
|
341
342
|
self.session = session
|
342
343
|
await self.init_all_data(session)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: xiaogpt
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.93
|
4
4
|
Summary: Play ChatGPT or other LLM with xiaomi AI speaker
|
5
5
|
Author-Email: yihong0618 <zouzou0208@gmail.com>
|
6
6
|
License: MIT
|
@@ -17,7 +17,7 @@ Requires-Dist: zhipuai
|
|
17
17
|
Requires-Dist: bardapi
|
18
18
|
Requires-Dist: edge-tts>=6.1.3
|
19
19
|
Requires-Dist: EdgeGPT==0.1.26
|
20
|
-
Requires-Dist: langchain
|
20
|
+
Requires-Dist: langchain>=0.0.343
|
21
21
|
Requires-Dist: beautifulsoup4>=4.12.0
|
22
22
|
Requires-Dist: google-search-results>=2.4.2
|
23
23
|
Requires-Dist: numexpr>=2.8.6
|
@@ -273,14 +273,13 @@ edge-tts --list-voices
|
|
273
273
|
由于 Edge TTS 启动了一个本地的 HTTP 服务,所以需要将容器的端口映射到宿主机上,并且指定本地机器的 hostname:
|
274
274
|
|
275
275
|
```shell
|
276
|
-
docker run -v <your-config-dir>:/config
|
276
|
+
docker run -v <your-config-dir>:/config -p 9527:9527 -e XIAOGPT_HOSTNAME=<your ip> yihong0618/xiaogpt --config=/config/config.json
|
277
277
|
```
|
278
278
|
|
279
279
|
注意端口必须映射为与容器内一致,XIAOGPT_HOSTNAME 需要设置为宿主机的 IP 地址,否则小爱无法正常播放语音。
|
280
280
|
|
281
281
|
## 推荐的 fork
|
282
282
|
|
283
|
-
- [MIGPT](https://github.com/Afool4U/MIGPT) -> 基于 API 流式对话的低延迟版MIGPT
|
284
283
|
- [XiaoBot](https://github.com/longbai/xiaobot) -> Go语言版本的Fork, 带支持不同平台的UI
|
285
284
|
|
286
285
|
## 感谢
|
@@ -1,7 +1,7 @@
|
|
1
|
-
xiaogpt-1.
|
2
|
-
xiaogpt-1.
|
3
|
-
xiaogpt-1.
|
4
|
-
xiaogpt-1.
|
1
|
+
xiaogpt-1.93.dist-info/METADATA,sha256=9dKbsvA5BGOkP-yNt-njYXNXPxJOKtkun1KApOaidr4,14774
|
2
|
+
xiaogpt-1.93.dist-info/WHEEL,sha256=C8f_gqhOWmHrh81n3Ukx5iURrqMhsHla81fuY1yuwvs,90
|
3
|
+
xiaogpt-1.93.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
|
4
|
+
xiaogpt-1.93.dist-info/licenses/LICENSE,sha256=XdClh516MvlnOf9749JZHCxSB7y6_fyXcWmLDz6IkZY,1063
|
5
5
|
xiaogpt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
xiaogpt/__main__.py,sha256=MSmt_5Xg84uHqzTN38JwgseJK8rsJn_11A8WD99VtEo,61
|
7
7
|
xiaogpt/bot/__init__.py,sha256=raXM63RFkZFQWLwT0sz8NY0jAkCQip9TmIShpEU4wIA,909
|
@@ -12,8 +12,8 @@ xiaogpt/bot/glm_bot.py,sha256=6ajuH4ZOEcHLY-AZGsZrT4QVXUSPGoo-dz8q3VIa7XU,1108
|
|
12
12
|
xiaogpt/bot/gpt3_bot.py,sha256=1qqn9hr79bI5tKUHqUrVzgvUGL-bdyu9Tldp0Zi71Sg,2470
|
13
13
|
xiaogpt/bot/langchain_bot.py,sha256=Kc4qXWIR1GBucxWmm1Y5YpAB3UzTVZmUpaEZSQIoaYY,1919
|
14
14
|
xiaogpt/bot/newbing_bot.py,sha256=8VONq_2VAK66zUnjCacM9jg_4oHlYHTuKLAHob48Q2I,2187
|
15
|
-
xiaogpt/cli.py,sha256=
|
16
|
-
xiaogpt/config.py,sha256=
|
15
|
+
xiaogpt/cli.py,sha256=XOMShHbqnUyOgCVPlIGMPzRvuzAqS-unIMf2Zypk-Ro,4386
|
16
|
+
xiaogpt/config.py,sha256=hL7qgqHD4fQ-xZ8-P9ecoCTCuEKd1IcDh1MWVdImjh4,6044
|
17
17
|
xiaogpt/langchain/callbacks.py,sha256=yR9AXQt9OHVYBWC47Q1I_BUT4Xg9iM44vnW2vv0BLpE,2616
|
18
18
|
xiaogpt/langchain/chain.py,sha256=rcbXzCV6H_r2r-Mi7mA__X8UZctDMl7nHloy3SAXXvw,1381
|
19
19
|
xiaogpt/langchain/examples/email/mail_box.py,sha256=FgE4FcRmXKp6MpyKhNASDYIisZAkV5w4pu1tKPrWUCg,6362
|
@@ -23,5 +23,5 @@ xiaogpt/tts/base.py,sha256=6VlTqQ_RJBbTb-perlMsnKg2qwfgKj4ELhzbdF0HD6c,4922
|
|
23
23
|
xiaogpt/tts/edge.py,sha256=KaMPjA8VZFt_8bGYf31jpYQgbyjYcqhb_L5czn54cvk,1099
|
24
24
|
xiaogpt/tts/mi.py,sha256=9HkgGWByAs7k8sTpRdVlgJnnmjc44RNAccJa6tGDlXk,1096
|
25
25
|
xiaogpt/utils.py,sha256=B7NCH7g19hcwHDXsnBJPTU6UcWnXoEntKWm-pgcet2I,2072
|
26
|
-
xiaogpt/xiaogpt.py,sha256=
|
27
|
-
xiaogpt-1.
|
26
|
+
xiaogpt/xiaogpt.py,sha256=DPQA-3CdzwM6ggsPj6iOwNdnXj8kz-OOAfKDoL7kHhY,15384
|
27
|
+
xiaogpt-1.93.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|