xiaogpt 2.61__tar.gz → 2.62__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 (27) hide show
  1. {xiaogpt-2.61 → xiaogpt-2.62}/PKG-INFO +1 -1
  2. {xiaogpt-2.61 → xiaogpt-2.62}/pyproject.toml +1 -1
  3. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/xiaogpt.py +1 -1
  4. {xiaogpt-2.61 → xiaogpt-2.62}/LICENSE +0 -0
  5. {xiaogpt-2.61 → xiaogpt-2.62}/README.md +0 -0
  6. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/__init__.py +0 -0
  7. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/__main__.py +0 -0
  8. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/__init__.py +0 -0
  9. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/base_bot.py +0 -0
  10. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/chatgptapi_bot.py +0 -0
  11. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/doubao_bot.py +0 -0
  12. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/gemini_bot.py +0 -0
  13. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/glm_bot.py +0 -0
  14. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/langchain_bot.py +0 -0
  15. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/newbing_bot.py +0 -0
  16. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/bot/qwen_bot.py +0 -0
  17. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/cli.py +0 -0
  18. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/config.py +0 -0
  19. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/langchain/callbacks.py +0 -0
  20. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/langchain/chain.py +0 -0
  21. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/langchain/examples/email/mail_box.py +0 -0
  22. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/langchain/examples/email/mail_summary_tools.py +0 -0
  23. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/tts/__init__.py +0 -0
  24. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/tts/base.py +0 -0
  25. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/tts/mi.py +0 -0
  26. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/tts/tetos.py +0 -0
  27. {xiaogpt-2.61 → xiaogpt-2.62}/xiaogpt/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xiaogpt
3
- Version: 2.61
3
+ Version: 2.62
4
4
  Summary: Play ChatGPT or other LLM with xiaomi AI speaker
5
5
  Author-Email: yihong0618 <zouzou0208@gmail.com>
6
6
  License: MIT
@@ -28,7 +28,7 @@ dependencies = [
28
28
  "tetos>=0.1.1",
29
29
  ]
30
30
  dynamic = []
31
- version = "2.61"
31
+ version = "2.62"
32
32
 
33
33
  [project.license]
34
34
  text = "MIT"
@@ -411,7 +411,7 @@ class MiGPT:
411
411
  await self.wakeup_xiaoai()
412
412
 
413
413
  async def speak(self, text_stream: AsyncIterator[str]) -> None:
414
- text = await anext(text_stream)
414
+ text = await text_stream.__anext__()
415
415
  # See if the first part contains language code(e.g. en-US|Hello world)
416
416
  lang, _, first_chunk = text.rpartition("|")
417
417
  if len(lang) > 7:
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