xiaogpt 3.20__py3-none-any.whl → 3.21__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/utils.py CHANGED
@@ -46,13 +46,6 @@ async def split_sentences(text_stream: AsyncIterator[str]) -> AsyncIterator[str]
46
46
  yield cur
47
47
 
48
48
 
49
- ### for edge-tts utils ###
50
- def find_key_by_partial_string(dictionary: dict[str, str], partial_key: str) -> str:
51
- for key, value in dictionary.items():
52
- if key in partial_key:
53
- return value
54
-
55
-
56
49
  def validate_proxy(proxy_str: str) -> bool:
57
50
  """Do a simple validation of the http proxy string."""
58
51
 
xiaogpt/xiaogpt.py CHANGED
@@ -38,7 +38,6 @@ class MiGPT:
38
38
  self.last_timestamp = int(time.time() * 1000) # timestamp last call mi speaker
39
39
  self.cookie_jar = None
40
40
  self.device_id = ""
41
- self.parent_id = None
42
41
  self.mina_service = None
43
42
  self.miio_service = None
44
43
  self.in_conversation = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xiaogpt
3
- Version: 3.20
3
+ Version: 3.21
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,8 +28,8 @@ Requires-Dist: langchain-community>=0.0.38
28
28
  Requires-Dist: lingua-language-detector>=2.0.2; python_version < "3.13"
29
29
  Requires-Dist: volcengine-python-sdk>=1.1.5
30
30
  Provides-Extra: locked
31
- Requires-Dist: aiohappyeyeballs==2.4.0; extra == "locked"
32
- Requires-Dist: aiohttp==3.11.17; extra == "locked"
31
+ Requires-Dist: aiohappyeyeballs==2.6.1; extra == "locked"
32
+ Requires-Dist: aiohttp==3.12.11; extra == "locked"
33
33
  Requires-Dist: aiosignal==1.3.1; extra == "locked"
34
34
  Requires-Dist: annotated-types==0.6.0; extra == "locked"
35
35
  Requires-Dist: anyio==4.3.0; extra == "locked"
@@ -39,10 +39,11 @@ Requires-Dist: azure-cognitiveservices-speech==1.37.0; extra == "locked"
39
39
  Requires-Dist: beautifulsoup4==4.13.4; extra == "locked"
40
40
  Requires-Dist: cachetools==5.3.2; extra == "locked"
41
41
  Requires-Dist: certifi==2024.2.2; extra == "locked"
42
+ Requires-Dist: cffi==1.17.1; platform_python_implementation == "PyPy" and extra == "locked"
42
43
  Requires-Dist: charset-normalizer==3.3.2; extra == "locked"
43
44
  Requires-Dist: click==8.1.7; extra == "locked"
44
45
  Requires-Dist: colorama==0.4.6; platform_system == "Windows" and extra == "locked"
45
- Requires-Dist: dashscope==1.23.1; extra == "locked"
46
+ Requires-Dist: dashscope==1.23.4; extra == "locked"
46
47
  Requires-Dist: dataclasses-json==0.6.3; extra == "locked"
47
48
  Requires-Dist: distro==1.9.0; extra == "locked"
48
49
  Requires-Dist: edge-tts==6.1.10; extra == "locked"
@@ -59,7 +60,7 @@ Requires-Dist: google-generativeai==0.8.5; extra == "locked"
59
60
  Requires-Dist: google-search-results==2.4.2; extra == "locked"
60
61
  Requires-Dist: googleapis-common-protos==1.62.0; extra == "locked"
61
62
  Requires-Dist: greenlet==3.0.3; (platform_machine == "win32" or platform_machine == "WIN32" or platform_machine == "AMD64" or platform_machine == "amd64" or platform_machine == "x86_64" or platform_machine == "ppc64le" or platform_machine == "aarch64") and extra == "locked"
62
- Requires-Dist: groq==0.22.0; extra == "locked"
63
+ Requires-Dist: groq==0.26.0; extra == "locked"
63
64
  Requires-Dist: grpcio==1.60.0; extra == "locked"
64
65
  Requires-Dist: grpcio-status==1.60.0; extra == "locked"
65
66
  Requires-Dist: h11==0.14.0; extra == "locked"
@@ -73,11 +74,11 @@ Requires-Dist: idna==3.7; extra == "locked"
73
74
  Requires-Dist: jiter==0.5.0; extra == "locked"
74
75
  Requires-Dist: jsonpatch==1.33; extra == "locked"
75
76
  Requires-Dist: jsonpointer==2.4; extra == "locked"
76
- Requires-Dist: langchain==0.3.23; extra == "locked"
77
- Requires-Dist: langchain-community==0.3.21; extra == "locked"
78
- Requires-Dist: langchain-core==0.3.54; extra == "locked"
77
+ Requires-Dist: langchain==0.3.25; extra == "locked"
78
+ Requires-Dist: langchain-community==0.3.24; extra == "locked"
79
+ Requires-Dist: langchain-core==0.3.64; extra == "locked"
79
80
  Requires-Dist: langchain-text-splitters==0.3.8; extra == "locked"
80
- Requires-Dist: langsmith==0.1.133; extra == "locked"
81
+ Requires-Dist: langsmith==0.3.45; extra == "locked"
81
82
  Requires-Dist: lingua-language-detector==2.0.2; python_version < "3.13" and extra == "locked"
82
83
  Requires-Dist: markdown-it-py==3.0.0; extra == "locked"
83
84
  Requires-Dist: marshmallow==3.20.1; extra == "locked"
@@ -88,8 +89,8 @@ Requires-Dist: mutagen==1.47.0; extra == "locked"
88
89
  Requires-Dist: mypy-extensions==1.0.0; extra == "locked"
89
90
  Requires-Dist: numexpr==2.10.2; extra == "locked"
90
91
  Requires-Dist: numpy==1.26.3; extra == "locked"
91
- Requires-Dist: openai==1.75.0; extra == "locked"
92
- Requires-Dist: orjson==3.10.0; extra == "locked"
92
+ Requires-Dist: openai==1.85.0; extra == "locked"
93
+ Requires-Dist: orjson==3.10.0; platform_python_implementation != "PyPy" and extra == "locked"
93
94
  Requires-Dist: ormsgpack==1.5.0; extra == "locked"
94
95
  Requires-Dist: packaging==23.2; extra == "locked"
95
96
  Requires-Dist: propcache==0.3.1; extra == "locked"
@@ -97,6 +98,7 @@ Requires-Dist: proto-plus==1.26.1; extra == "locked"
97
98
  Requires-Dist: protobuf==4.25.1; extra == "locked"
98
99
  Requires-Dist: pyasn1==0.5.1; extra == "locked"
99
100
  Requires-Dist: pyasn1-modules==0.3.0; extra == "locked"
101
+ Requires-Dist: pycparser==2.22; platform_python_implementation == "PyPy" and extra == "locked"
100
102
  Requires-Dist: pydantic==2.8.2; extra == "locked"
101
103
  Requires-Dist: pydantic-core==2.20.1; extra == "locked"
102
104
  Requires-Dist: pydantic-settings==2.5.2; extra == "locked"
@@ -123,11 +125,12 @@ Requires-Dist: typing-extensions==4.12.2; extra == "locked"
123
125
  Requires-Dist: typing-inspect==0.9.0; extra == "locked"
124
126
  Requires-Dist: uritemplate==4.1.1; extra == "locked"
125
127
  Requires-Dist: urllib3==2.1.0; extra == "locked"
126
- Requires-Dist: volcengine-python-sdk==1.1.5; extra == "locked"
128
+ Requires-Dist: volcengine-python-sdk==3.0.10; extra == "locked"
127
129
  Requires-Dist: websocket-client==1.8.0; extra == "locked"
128
130
  Requires-Dist: wsproto==1.2.0; extra == "locked"
129
131
  Requires-Dist: yarl==1.20.0; extra == "locked"
130
- Requires-Dist: zhipuai==2.1.5.20250415; extra == "locked"
132
+ Requires-Dist: zhipuai==2.1.5.20250526; extra == "locked"
133
+ Requires-Dist: zstandard==0.23.0; extra == "locked"
131
134
  Description-Content-Type: text/markdown
132
135
 
133
136
  # xiaogpt
@@ -1,7 +1,7 @@
1
- xiaogpt-3.20.dist-info/METADATA,sha256=lkHmkz2GV3rwYSyLSHy6TUDgO0Ik1md3Y7EzDmDgW3Y,31901
2
- xiaogpt-3.20.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- xiaogpt-3.20.dist-info/entry_points.txt,sha256=q4WRS7kS4kQ5kZX57Fq40VrhCi74NZcyRPRX4JP2veo,61
4
- xiaogpt-3.20.dist-info/licenses/LICENSE,sha256=XdClh516MvlnOf9749JZHCxSB7y6_fyXcWmLDz6IkZY,1063
1
+ xiaogpt-3.21.dist-info/METADATA,sha256=9j-8V5LIQh9zbP-PesUjQnInd0d7D0jroUl6J3jfM-8,32185
2
+ xiaogpt-3.21.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ xiaogpt-3.21.dist-info/entry_points.txt,sha256=q4WRS7kS4kQ5kZX57Fq40VrhCi74NZcyRPRX4JP2veo,61
4
+ xiaogpt-3.21.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
@@ -26,6 +26,6 @@ xiaogpt/tts/base.py,sha256=8vP8fIksSZttmrMaUT4vtiDbkfijkr9lbhyod1_5tc4,1440
26
26
  xiaogpt/tts/file.py,sha256=pWzozktMAgJraPiANWQC5dB4EQcL9QCwJWbX_M4hqWE,3721
27
27
  xiaogpt/tts/live.py,sha256=7-NpuOU7E6GNht1PHjAA8_miXdFVDk8C7aL-sY1xqPE,3299
28
28
  xiaogpt/tts/mi.py,sha256=1MzCB27DBohPQ_4Xz4W_FV9p-chJFDavOHB89NviLcM,1095
29
- xiaogpt/utils.py,sha256=YYmRDNtccxqB9gyN_xhKZwgL1_PNYEp7So_-jt2tiVg,2668
30
- xiaogpt/xiaogpt.py,sha256=j90KRTOFVFSSXmUNZNfnRPQfY4alViNk0erjGoL0HUQ,16705
31
- xiaogpt-3.20.dist-info/RECORD,,
29
+ xiaogpt/utils.py,sha256=5ggVYOzOPBgoD6_bVw9ScPXPTs3XSk4hdhAfG3TjnIw,2456
30
+ xiaogpt/xiaogpt.py,sha256=uIZ3LUgr7n14jzBadZF26ro6D5-TSPWhdk5Y-N5hl4s,16675
31
+ xiaogpt-3.21.dist-info/RECORD,,
File without changes