xiaogpt 3.20__py3-none-any.whl → 3.22__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/bot/llama_bot.py CHANGED
@@ -1,5 +1,4 @@
1
1
  import httpx
2
- from groq import Groq as openai
3
2
  from groq import AsyncGroq as AsyncOpenAI
4
3
 
5
4
  from xiaogpt.bot.chatgptapi_bot import ChatGPTBot
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.22
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,9 +28,9 @@ 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"
33
- Requires-Dist: aiosignal==1.3.1; extra == "locked"
31
+ Requires-Dist: aiohappyeyeballs==2.6.1; extra == "locked"
32
+ Requires-Dist: aiohttp==3.12.15; extra == "locked"
33
+ Requires-Dist: aiosignal==1.4.0; extra == "locked"
34
34
  Requires-Dist: annotated-types==0.6.0; extra == "locked"
35
35
  Requires-Dist: anyio==4.3.0; extra == "locked"
36
36
  Requires-Dist: async-timeout==4.0.3; python_version < "3.11" and extra == "locked"
@@ -39,10 +39,12 @@ 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; 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: cryptography==43.0.3; extra == "locked"
47
+ Requires-Dist: dashscope==1.24.1; extra == "locked"
46
48
  Requires-Dist: dataclasses-json==0.6.3; extra == "locked"
47
49
  Requires-Dist: distro==1.9.0; extra == "locked"
48
50
  Requires-Dist: edge-tts==6.1.10; extra == "locked"
@@ -59,7 +61,7 @@ Requires-Dist: google-generativeai==0.8.5; extra == "locked"
59
61
  Requires-Dist: google-search-results==2.4.2; extra == "locked"
60
62
  Requires-Dist: googleapis-common-protos==1.62.0; extra == "locked"
61
63
  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"
64
+ Requires-Dist: groq==0.31.0; extra == "locked"
63
65
  Requires-Dist: grpcio==1.60.0; extra == "locked"
64
66
  Requires-Dist: grpcio-status==1.60.0; extra == "locked"
65
67
  Requires-Dist: h11==0.14.0; extra == "locked"
@@ -73,11 +75,11 @@ Requires-Dist: idna==3.7; extra == "locked"
73
75
  Requires-Dist: jiter==0.5.0; extra == "locked"
74
76
  Requires-Dist: jsonpatch==1.33; extra == "locked"
75
77
  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"
79
- Requires-Dist: langchain-text-splitters==0.3.8; extra == "locked"
80
- Requires-Dist: langsmith==0.1.133; extra == "locked"
78
+ Requires-Dist: langchain==0.3.27; extra == "locked"
79
+ Requires-Dist: langchain-community==0.3.27; extra == "locked"
80
+ Requires-Dist: langchain-core==0.3.74; extra == "locked"
81
+ Requires-Dist: langchain-text-splitters==0.3.9; extra == "locked"
82
+ Requires-Dist: langsmith==0.3.45; extra == "locked"
81
83
  Requires-Dist: lingua-language-detector==2.0.2; python_version < "3.13" and extra == "locked"
82
84
  Requires-Dist: markdown-it-py==3.0.0; extra == "locked"
83
85
  Requires-Dist: marshmallow==3.20.1; extra == "locked"
@@ -88,8 +90,8 @@ Requires-Dist: mutagen==1.47.0; extra == "locked"
88
90
  Requires-Dist: mypy-extensions==1.0.0; extra == "locked"
89
91
  Requires-Dist: numexpr==2.10.2; extra == "locked"
90
92
  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"
93
+ Requires-Dist: openai==1.99.6; extra == "locked"
94
+ Requires-Dist: orjson==3.10.0; platform_python_implementation != "PyPy" and extra == "locked"
93
95
  Requires-Dist: ormsgpack==1.5.0; extra == "locked"
94
96
  Requires-Dist: packaging==23.2; extra == "locked"
95
97
  Requires-Dist: propcache==0.3.1; extra == "locked"
@@ -97,6 +99,7 @@ Requires-Dist: proto-plus==1.26.1; extra == "locked"
97
99
  Requires-Dist: protobuf==4.25.1; extra == "locked"
98
100
  Requires-Dist: pyasn1==0.5.1; extra == "locked"
99
101
  Requires-Dist: pyasn1-modules==0.3.0; extra == "locked"
102
+ Requires-Dist: pycparser==2.22; extra == "locked"
100
103
  Requires-Dist: pydantic==2.8.2; extra == "locked"
101
104
  Requires-Dist: pydantic-core==2.20.1; extra == "locked"
102
105
  Requires-Dist: pydantic-settings==2.5.2; extra == "locked"
@@ -108,7 +111,7 @@ Requires-Dist: python-dotenv==1.0.1; extra == "locked"
108
111
  Requires-Dist: pyyaml==6.0.2; extra == "locked"
109
112
  Requires-Dist: requests==2.31.0; extra == "locked"
110
113
  Requires-Dist: requests-toolbelt==1.0.0; extra == "locked"
111
- Requires-Dist: rich==14.0.0; extra == "locked"
114
+ Requires-Dist: rich==14.1.0; extra == "locked"
112
115
  Requires-Dist: rsa==4.9; extra == "locked"
113
116
  Requires-Dist: setuptools==78.1.1; extra == "locked"
114
117
  Requires-Dist: six==1.17.0; extra == "locked"
@@ -123,11 +126,12 @@ Requires-Dist: typing-extensions==4.12.2; extra == "locked"
123
126
  Requires-Dist: typing-inspect==0.9.0; extra == "locked"
124
127
  Requires-Dist: uritemplate==4.1.1; extra == "locked"
125
128
  Requires-Dist: urllib3==2.1.0; extra == "locked"
126
- Requires-Dist: volcengine-python-sdk==1.1.5; extra == "locked"
129
+ Requires-Dist: volcengine-python-sdk==4.0.10; extra == "locked"
127
130
  Requires-Dist: websocket-client==1.8.0; extra == "locked"
128
131
  Requires-Dist: wsproto==1.2.0; extra == "locked"
129
132
  Requires-Dist: yarl==1.20.0; extra == "locked"
130
- Requires-Dist: zhipuai==2.1.5.20250415; extra == "locked"
133
+ Requires-Dist: zhipuai==2.1.5.20250801; extra == "locked"
134
+ Requires-Dist: zstandard==0.23.0; extra == "locked"
131
135
  Description-Content-Type: text/markdown
132
136
 
133
137
  # 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.22.dist-info/METADATA,sha256=fTYtYCwjv5LFu3greZ-Jc92SeJ39Q4E_kWYbX-N0Y80,32150
2
+ xiaogpt-3.22.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ xiaogpt-3.22.dist-info/entry_points.txt,sha256=q4WRS7kS4kQ5kZX57Fq40VrhCi74NZcyRPRX4JP2veo,61
4
+ xiaogpt-3.22.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
@@ -11,7 +11,7 @@ xiaogpt/bot/doubao_bot.py,sha256=vPilAbcZcSoWzbkd6kNEeIlmc8knWV6YEjKSB1XJiSY,205
11
11
  xiaogpt/bot/gemini_bot.py,sha256=UrLMhPi79PJ2fFiIDmizdBPmOZ3-glpcqcSsU7TVcKg,2626
12
12
  xiaogpt/bot/glm_bot.py,sha256=A90QbbU2UU7pr0o4_5-fxF4Gkz7gFB0LADIGx7N5aO4,1713
13
13
  xiaogpt/bot/langchain_bot.py,sha256=4Uz5iOYzA2ongCklS-9zBse2fw-7kEE_9wITH7wdVCc,1944
14
- xiaogpt/bot/llama_bot.py,sha256=HRR_ycuC6DY5MQTKauXEayQ0o_JKk9t-ea3mblscm8E,708
14
+ xiaogpt/bot/llama_bot.py,sha256=CFKm4TZ9l9sI447eWHuWBvrwaV2HmfxOLh6Rd3G_Cn8,676
15
15
  xiaogpt/bot/moonshot_bot.py,sha256=PrVRBskZx-U0lH_3RVe89QJa7WKHYqhpft0089pYQz0,822
16
16
  xiaogpt/bot/qwen_bot.py,sha256=rFCOz5uiUsuhePjPozdCecNv5HGiUTNEhHYNw3Exexs,3590
17
17
  xiaogpt/bot/yi_bot.py,sha256=D7JEIh8KPVMvlOLaEVr9ahvyMaJLGToHP_gWU3RoYPc,784
@@ -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.22.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.4)
2
+ Generator: pdm-backend (2.4.5)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any