xiaogpt 2.30__py3-none-any.whl → 2.32__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 CHANGED
@@ -211,9 +211,6 @@ def main():
211
211
  options = parser.parse_args()
212
212
  if options.bot in ["bard"] and options.stream:
213
213
  raise Exception("For now Bard do not support stream")
214
- if options.tts in ["edge", "openai", "azure"]:
215
- print("Will close stream to better tts")
216
- options.stream = False
217
214
  config = Config.from_options(options)
218
215
 
219
216
  miboy = MiGPT(config)
xiaogpt/config.py CHANGED
@@ -114,9 +114,6 @@ class Config:
114
114
  )
115
115
  if self.tts == "azure" and not self.azure_tts_speech_key:
116
116
  raise Exception("Using Azure TTS needs azure speech key")
117
- if self.tts in ["azure", "edge", "openai"]:
118
- print("Will close stream when use tts: {self.tts} for better experience")
119
- self.stream = False
120
117
 
121
118
  @property
122
119
  def tts_command(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xiaogpt
3
- Version: 2.30
3
+ Version: 2.32
4
4
  Summary: Play ChatGPT or other LLM with xiaomi AI speaker
5
5
  Author-Email: yihong0618 <zouzou0208@gmail.com>
6
6
  License: MIT
@@ -25,6 +25,7 @@ Requires-Dist: google-generativeai
25
25
  Requires-Dist: numexpr>=2.8.6
26
26
  Requires-Dist: dashscope==1.10.0
27
27
  Requires-Dist: httpcore==0.15.0
28
+ Requires-Dist: idna==3.7
28
29
  Requires-Dist: azure-cognitiveservices-speech>=1.37.0
29
30
  Description-Content-Type: text/markdown
30
31
 
@@ -1,7 +1,7 @@
1
- xiaogpt-2.30.dist-info/METADATA,sha256=XtLWjKNLdkPj3UE_52Yv2FiplsNkOD0CvrKLRUshE3k,24670
2
- xiaogpt-2.30.dist-info/WHEEL,sha256=N2J68yzZqJh3mI_Wg92rwhw0rtJDFpZj9bwQIMJgaVg,90
3
- xiaogpt-2.30.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
4
- xiaogpt-2.30.dist-info/licenses/LICENSE,sha256=XdClh516MvlnOf9749JZHCxSB7y6_fyXcWmLDz6IkZY,1063
1
+ xiaogpt-2.32.dist-info/METADATA,sha256=lgBolk_OIlll7RkBLOTFpsbw_5YOr80EOyzBIe_KLeM,24695
2
+ xiaogpt-2.32.dist-info/WHEEL,sha256=N2J68yzZqJh3mI_Wg92rwhw0rtJDFpZj9bwQIMJgaVg,90
3
+ xiaogpt-2.32.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
4
+ xiaogpt-2.32.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=O3Wq7WRwTVdKJdKZxkBtCPdRJ8uXrQE0dqHa1ekOnfQ,1073
@@ -14,8 +14,8 @@ xiaogpt/bot/gpt3_bot.py,sha256=enX45_wrGjAtOh-anf8KnjCJluWSARZbjTGD_WZgoms,2781
14
14
  xiaogpt/bot/langchain_bot.py,sha256=4Uz5iOYzA2ongCklS-9zBse2fw-7kEE_9wITH7wdVCc,1944
15
15
  xiaogpt/bot/newbing_bot.py,sha256=afUmw6tyMXbgGZvfQQWaA5h0-e0V0isFolW-WGhd0Vs,2289
16
16
  xiaogpt/bot/qwen_bot.py,sha256=325lMa4Z38rRh47HDa3J4XjvSs4SWOqMVhrMWzkGNo4,3657
17
- xiaogpt/cli.py,sha256=prTtwZjwC5RDZeh3eJWzBXTUHkOvFk7hAhuq9Mmeya8,5506
18
- xiaogpt/config.py,sha256=jKumR4BROqRnshBk79mqUAKuqSkW7gsCCPukYNzCWho,6703
17
+ xiaogpt/cli.py,sha256=g_RaSaKgNxT3F4GGhHqgpI1T9_57hdWGYQw5hpaApPk,5375
18
+ xiaogpt/config.py,sha256=0N4PPa0NyTfGVqsLDPGP99BRWssOgzd4dH9RPD1WsD4,6533
19
19
  xiaogpt/langchain/callbacks.py,sha256=yR9AXQt9OHVYBWC47Q1I_BUT4Xg9iM44vnW2vv0BLpE,2616
20
20
  xiaogpt/langchain/chain.py,sha256=z0cqRlL0ElWnf31ByxZBN7AKOT-svXQDt5_NDft_nYc,1495
21
21
  xiaogpt/langchain/examples/email/mail_box.py,sha256=xauqrjE4-G4XPQnokUPE-MZgAaHQ_VrUDLlbfYTdCoo,6372
@@ -28,4 +28,4 @@ xiaogpt/tts/mi.py,sha256=9HkgGWByAs7k8sTpRdVlgJnnmjc44RNAccJa6tGDlXk,1096
28
28
  xiaogpt/tts/openai.py,sha256=_Qk12zYY-UuXLKvQVe3PqIvCmoRW9OcVCqQRoGCXvNc,1533
29
29
  xiaogpt/utils.py,sha256=B7NCH7g19hcwHDXsnBJPTU6UcWnXoEntKWm-pgcet2I,2072
30
30
  xiaogpt/xiaogpt.py,sha256=KrgvlHkhXDxlb4gUIXqDIDr6wMuiDhL13stDglYk1dk,15400
31
- xiaogpt-2.30.dist-info/RECORD,,
31
+ xiaogpt-2.32.dist-info/RECORD,,
File without changes