xiaogpt 2.30__tar.gz → 2.32__tar.gz

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.
Files changed (30) hide show
  1. {xiaogpt-2.30 → xiaogpt-2.32}/PKG-INFO +2 -1
  2. {xiaogpt-2.30 → xiaogpt-2.32}/pyproject.toml +2 -1
  3. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/cli.py +0 -3
  4. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/config.py +0 -3
  5. {xiaogpt-2.30 → xiaogpt-2.32}/LICENSE +0 -0
  6. {xiaogpt-2.30 → xiaogpt-2.32}/README.md +0 -0
  7. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/__init__.py +0 -0
  8. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/__main__.py +0 -0
  9. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/__init__.py +0 -0
  10. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/bard_bot.py +0 -0
  11. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/base_bot.py +0 -0
  12. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/chatgptapi_bot.py +0 -0
  13. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/gemini_bot.py +0 -0
  14. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/glm_bot.py +0 -0
  15. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/gpt3_bot.py +0 -0
  16. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/langchain_bot.py +0 -0
  17. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/newbing_bot.py +0 -0
  18. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/bot/qwen_bot.py +0 -0
  19. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/langchain/callbacks.py +0 -0
  20. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/langchain/chain.py +0 -0
  21. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/langchain/examples/email/mail_box.py +0 -0
  22. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/langchain/examples/email/mail_summary_tools.py +0 -0
  23. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/__init__.py +0 -0
  24. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/azure.py +0 -0
  25. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/base.py +0 -0
  26. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/edge.py +0 -0
  27. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/mi.py +0 -0
  28. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/tts/openai.py +0 -0
  29. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/utils.py +0 -0
  30. {xiaogpt-2.30 → xiaogpt-2.32}/xiaogpt/xiaogpt.py +0 -0
@@ -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
 
@@ -28,10 +28,11 @@ dependencies = [
28
28
  "numexpr>=2.8.6",
29
29
  "dashscope==1.10.0",
30
30
  "httpcore==0.15.0",
31
+ "idna==3.7",
31
32
  "azure-cognitiveservices-speech>=1.37.0",
32
33
  ]
33
34
  dynamic = []
34
- version = "2.30"
35
+ version = "2.32"
35
36
 
36
37
  [project.license]
37
38
  text = "MIT"
@@ -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)
@@ -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:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes