xiaogpt 2.81__py3-none-any.whl → 2.83__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/tts/base.py CHANGED
@@ -118,7 +118,7 @@ class AudioFileTTS(TTS):
118
118
  continue
119
119
  logger.debug("Playing URL %s (%s seconds)", url, duration)
120
120
  await asyncio.gather(
121
- self.mina_service.play_by_url(self.device_id, url),
121
+ self.mina_service.play_by_url(self.device_id, url, _type=1),
122
122
  self.wait_for_duration(duration),
123
123
  )
124
124
  await task
xiaogpt/xiaogpt.py CHANGED
@@ -325,7 +325,7 @@ class MiGPT:
325
325
  # WTF xiaomi api
326
326
  is_playing = (
327
327
  json.loads(playing_info.get("data", {}).get("info", "{}")).get("status", -1)
328
- >= 1
328
+ == 1
329
329
  )
330
330
  return is_playing
331
331
 
@@ -333,7 +333,7 @@ class MiGPT:
333
333
  is_playing = await self.get_if_xiaoai_is_playing()
334
334
  if is_playing:
335
335
  # stop it
336
- await self.mina_service.player_stop(self.device_id)
336
+ await self.mina_service.player_pause(self.device_id)
337
337
 
338
338
  async def wakeup_xiaoai(self):
339
339
  return await miio_command(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xiaogpt
3
- Version: 2.81
3
+ Version: 2.83
4
4
  Summary: Play ChatGPT or other LLM with xiaomi AI speaker
5
5
  Author-Email: yihong0618 <zouzou0208@gmail.com>
6
6
  License: MIT
@@ -24,6 +24,7 @@ Requires-Dist: dashscope>=1.10.0
24
24
  Requires-Dist: tetos>=0.2.1
25
25
  Requires-Dist: groq>=0.5.0
26
26
  Requires-Dist: pyyaml>=6.0.1
27
+ Requires-Dist: langchain-community>=0.0.38
27
28
  Requires-Dist: aiohttp==3.9.5; extra == "locked"
28
29
  Requires-Dist: aiosignal==1.3.1; extra == "locked"
29
30
  Requires-Dist: annotated-types==0.6.0; extra == "locked"
@@ -37,7 +38,7 @@ Requires-Dist: certifi==2024.2.2; extra == "locked"
37
38
  Requires-Dist: charset-normalizer==3.3.2; extra == "locked"
38
39
  Requires-Dist: click==8.1.7; extra == "locked"
39
40
  Requires-Dist: colorama==0.4.6; platform_system == "Windows" and extra == "locked"
40
- Requires-Dist: dashscope==1.19.0; extra == "locked"
41
+ Requires-Dist: dashscope==1.19.1; extra == "locked"
41
42
  Requires-Dist: dataclasses-json==0.6.3; extra == "locked"
42
43
  Requires-Dist: distro==1.9.0; extra == "locked"
43
44
  Requires-Dist: edge-tts==6.1.10; extra == "locked"
@@ -65,10 +66,10 @@ Requires-Dist: httpx[socks]==0.27.0; extra == "locked"
65
66
  Requires-Dist: idna==3.7; extra == "locked"
66
67
  Requires-Dist: jsonpatch==1.33; extra == "locked"
67
68
  Requires-Dist: jsonpointer==2.4; extra == "locked"
68
- Requires-Dist: langchain==0.1.20; extra == "locked"
69
- Requires-Dist: langchain-community==0.0.38; extra == "locked"
70
- Requires-Dist: langchain-core==0.1.52; extra == "locked"
71
- Requires-Dist: langchain-text-splitters==0.0.1; extra == "locked"
69
+ Requires-Dist: langchain==0.2.0; extra == "locked"
70
+ Requires-Dist: langchain-community==0.2.0; extra == "locked"
71
+ Requires-Dist: langchain-core==0.2.0; extra == "locked"
72
+ Requires-Dist: langchain-text-splitters==0.2.0; extra == "locked"
72
73
  Requires-Dist: langsmith==0.1.45; extra == "locked"
73
74
  Requires-Dist: markdown-it-py==3.0.0; extra == "locked"
74
75
  Requires-Dist: marshmallow==3.20.1; extra == "locked"
@@ -1,7 +1,7 @@
1
- xiaogpt-2.81.dist-info/METADATA,sha256=Se9ovxjJFuZsUNhvnRydMY3ih2TwvEa6Hr_s1BukM84,29638
2
- xiaogpt-2.81.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
- xiaogpt-2.81.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
4
- xiaogpt-2.81.dist-info/licenses/LICENSE,sha256=XdClh516MvlnOf9749JZHCxSB7y6_fyXcWmLDz6IkZY,1063
1
+ xiaogpt-2.83.dist-info/METADATA,sha256=Cc4zadPOurP1qm4vPTQRe8TmaumjvdtL21ccYUbw8I4,29678
2
+ xiaogpt-2.83.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
+ xiaogpt-2.83.dist-info/entry_points.txt,sha256=zLFzA72qQ_eWBepdA2YU5vdXFqORH8wXhv2Ox1vnYP8,46
4
+ xiaogpt-2.83.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=BDGvj1JuWVw47qfREWGKnSXeiFg6DVJJAz2rHVryqmc,1160
@@ -22,9 +22,9 @@ xiaogpt/langchain/chain.py,sha256=z0cqRlL0ElWnf31ByxZBN7AKOT-svXQDt5_NDft_nYc,14
22
22
  xiaogpt/langchain/examples/email/mail_box.py,sha256=xauqrjE4-G4XPQnokUPE-MZgAaHQ_VrUDLlbfYTdCoo,6372
23
23
  xiaogpt/langchain/examples/email/mail_summary_tools.py,sha256=6cWvBJUaA7iaywcHdbUoww8WiCtaNw3TmwyxyF4DY7E,1561
24
24
  xiaogpt/tts/__init__.py,sha256=xasHDrmgECirf1MSyrfURSaMBqtdZBi3cQNeDvPo_cQ,145
25
- xiaogpt/tts/base.py,sha256=fljxdXy60HXqdLXyQlsJZtzJBo5VtTwLkkWTi58tzQc,4656
25
+ xiaogpt/tts/base.py,sha256=k0ZUcLJZWU5U_fXu_w-cLFgZpE2KkV89ARbVDXLqTck,4665
26
26
  xiaogpt/tts/mi.py,sha256=1MzCB27DBohPQ_4Xz4W_FV9p-chJFDavOHB89NviLcM,1095
27
27
  xiaogpt/tts/tetos.py,sha256=fkuOSYGqAfJyyPEXbsiOS--CewGf1JUiahoN33nzOAA,1058
28
28
  xiaogpt/utils.py,sha256=B7NCH7g19hcwHDXsnBJPTU6UcWnXoEntKWm-pgcet2I,2072
29
- xiaogpt/xiaogpt.py,sha256=SUB1Qu3DxuucC3EAQJ3hwCnMRdhXMjC2dzhqABK8hk4,16524
30
- xiaogpt-2.81.dist-info/RECORD,,
29
+ xiaogpt/xiaogpt.py,sha256=UfpKGJK95CcYSdZIgQEcyS4uwD77DcS8BAXtq_KxS8c,16525
30
+ xiaogpt-2.83.dist-info/RECORD,,
File without changes