xiaogpt 3.1__tar.gz → 3.3__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 (29) hide show
  1. {xiaogpt-3.1 → xiaogpt-3.3}/PKG-INFO +13 -11
  2. {xiaogpt-3.1 → xiaogpt-3.3}/pyproject.toml +13 -11
  3. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/xiaogpt.py +1 -0
  4. {xiaogpt-3.1 → xiaogpt-3.3}/LICENSE +0 -0
  5. {xiaogpt-3.1 → xiaogpt-3.3}/README.md +0 -0
  6. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/__init__.py +0 -0
  7. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/__main__.py +0 -0
  8. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/__init__.py +0 -0
  9. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/base_bot.py +0 -0
  10. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/chatgptapi_bot.py +0 -0
  11. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/doubao_bot.py +0 -0
  12. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/gemini_bot.py +0 -0
  13. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/glm_bot.py +0 -0
  14. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/langchain_bot.py +0 -0
  15. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/llama_bot.py +0 -0
  16. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/moonshot_bot.py +0 -0
  17. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/qwen_bot.py +0 -0
  18. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/bot/yi_bot.py +0 -0
  19. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/cli.py +0 -0
  20. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/config.py +0 -0
  21. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/langchain/callbacks.py +0 -0
  22. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/langchain/chain.py +0 -0
  23. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/langchain/examples/email/mail_box.py +0 -0
  24. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/langchain/examples/email/mail_summary_tools.py +0 -0
  25. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/tts/__init__.py +0 -0
  26. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/tts/base.py +0 -0
  27. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/tts/mi.py +0 -0
  28. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/tts/tetos.py +0 -0
  29. {xiaogpt-3.1 → xiaogpt-3.3}/xiaogpt/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xiaogpt
3
- Version: 3.1
3
+ Version: 3.3
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 @@ Requires-Dist: langchain-community>=0.0.38
28
28
  Requires-Dist: lingua-language-detector>=2.0.2; python_version < "3.13"
29
29
  Provides-Extra: locked
30
30
  Requires-Dist: aiohappyeyeballs==2.4.0; extra == "locked"
31
- Requires-Dist: aiohttp==3.10.5; extra == "locked"
31
+ Requires-Dist: aiohttp==3.10.10; extra == "locked"
32
32
  Requires-Dist: aiosignal==1.3.1; extra == "locked"
33
33
  Requires-Dist: annotated-types==0.6.0; extra == "locked"
34
34
  Requires-Dist: anyio==4.3.0; extra == "locked"
@@ -47,14 +47,14 @@ Requires-Dist: distro==1.9.0; extra == "locked"
47
47
  Requires-Dist: edge-tts==6.1.10; extra == "locked"
48
48
  Requires-Dist: exceptiongroup==1.2.0; python_version < "3.11" and extra == "locked"
49
49
  Requires-Dist: frozenlist==1.4.1; extra == "locked"
50
- Requires-Dist: google-ai-generativelanguage==0.6.9; extra == "locked"
50
+ Requires-Dist: google-ai-generativelanguage==0.6.10; extra == "locked"
51
51
  Requires-Dist: google-api-core==2.15.0; extra == "locked"
52
52
  Requires-Dist: google-api-core[grpc]==2.15.0; extra == "locked"
53
53
  Requires-Dist: google-api-python-client==2.125.0; extra == "locked"
54
54
  Requires-Dist: google-auth==2.26.1; extra == "locked"
55
55
  Requires-Dist: google-auth-httplib2==0.2.0; extra == "locked"
56
56
  Requires-Dist: google-cloud-texttospeech==2.16.3; extra == "locked"
57
- Requires-Dist: google-generativeai==0.8.1; extra == "locked"
57
+ Requires-Dist: google-generativeai==0.8.3; extra == "locked"
58
58
  Requires-Dist: google-search-results==2.4.2; extra == "locked"
59
59
  Requires-Dist: googleapis-common-protos==1.62.0; extra == "locked"
60
60
  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"
@@ -70,11 +70,11 @@ Requires-Dist: idna==3.7; extra == "locked"
70
70
  Requires-Dist: jiter==0.5.0; extra == "locked"
71
71
  Requires-Dist: jsonpatch==1.33; extra == "locked"
72
72
  Requires-Dist: jsonpointer==2.4; extra == "locked"
73
- Requires-Dist: langchain==0.3.0; extra == "locked"
74
- Requires-Dist: langchain-community==0.3.0; extra == "locked"
75
- Requires-Dist: langchain-core==0.3.0; extra == "locked"
73
+ Requires-Dist: langchain==0.3.3; extra == "locked"
74
+ Requires-Dist: langchain-community==0.3.2; extra == "locked"
75
+ Requires-Dist: langchain-core==0.3.10; extra == "locked"
76
76
  Requires-Dist: langchain-text-splitters==0.3.0; extra == "locked"
77
- Requires-Dist: langsmith==0.1.120; extra == "locked"
77
+ Requires-Dist: langsmith==0.1.133; extra == "locked"
78
78
  Requires-Dist: lingua-language-detector==2.0.2; python_version < "3.13" and extra == "locked"
79
79
  Requires-Dist: markdown-it-py==3.0.0; extra == "locked"
80
80
  Requires-Dist: marshmallow==3.20.1; extra == "locked"
@@ -85,10 +85,11 @@ Requires-Dist: mutagen==1.47.0; extra == "locked"
85
85
  Requires-Dist: mypy-extensions==1.0.0; extra == "locked"
86
86
  Requires-Dist: numexpr==2.10.1; extra == "locked"
87
87
  Requires-Dist: numpy==1.26.3; extra == "locked"
88
- Requires-Dist: openai==1.45.0; extra == "locked"
88
+ Requires-Dist: openai==1.51.2; extra == "locked"
89
89
  Requires-Dist: orjson==3.10.0; extra == "locked"
90
90
  Requires-Dist: ormsgpack==1.5.0; extra == "locked"
91
91
  Requires-Dist: packaging==23.2; extra == "locked"
92
+ Requires-Dist: propcache==0.2.0; extra == "locked"
92
93
  Requires-Dist: proto-plus==1.23.0; extra == "locked"
93
94
  Requires-Dist: protobuf==4.25.1; extra == "locked"
94
95
  Requires-Dist: pyasn1==0.5.1; extra == "locked"
@@ -102,7 +103,8 @@ Requires-Dist: pyparsing==3.1.2; python_version > "3.0" and extra == "locked"
102
103
  Requires-Dist: python-dotenv==1.0.1; extra == "locked"
103
104
  Requires-Dist: pyyaml==6.0.2; extra == "locked"
104
105
  Requires-Dist: requests==2.31.0; extra == "locked"
105
- Requires-Dist: rich==13.8.1; extra == "locked"
106
+ Requires-Dist: requests-toolbelt==1.0.0; extra == "locked"
107
+ Requires-Dist: rich==13.9.2; extra == "locked"
106
108
  Requires-Dist: rsa==4.9; extra == "locked"
107
109
  Requires-Dist: sniffio==1.3.0; extra == "locked"
108
110
  Requires-Dist: socksio==1.0.0; extra == "locked"
@@ -117,7 +119,7 @@ Requires-Dist: uritemplate==4.1.1; extra == "locked"
117
119
  Requires-Dist: urllib3==2.1.0; extra == "locked"
118
120
  Requires-Dist: websocket-client==1.8.0; extra == "locked"
119
121
  Requires-Dist: websockets==12.0; extra == "locked"
120
- Requires-Dist: yarl==1.9.4; extra == "locked"
122
+ Requires-Dist: yarl==1.14.0; extra == "locked"
121
123
  Requires-Dist: zhipuai==2.1.5.20230904; extra == "locked"
122
124
  Description-Content-Type: text/markdown
123
125
 
@@ -31,7 +31,7 @@ dependencies = [
31
31
  "lingua-language-detector>=2.0.2; python_version < \"3.13\"",
32
32
  ]
33
33
  dynamic = []
34
- version = "3.1"
34
+ version = "3.3"
35
35
 
36
36
  [project.license]
37
37
  text = "MIT"
@@ -45,7 +45,7 @@ xiaogpt = "xiaogpt.cli:main"
45
45
  [project.optional-dependencies]
46
46
  locked = [
47
47
  "aiohappyeyeballs==2.4.0",
48
- "aiohttp==3.10.5",
48
+ "aiohttp==3.10.10",
49
49
  "aiosignal==1.3.1",
50
50
  "annotated-types==0.6.0",
51
51
  "anyio==4.3.0",
@@ -64,14 +64,14 @@ locked = [
64
64
  "edge-tts==6.1.10",
65
65
  "exceptiongroup==1.2.0 ; python_version < \"3.11\"",
66
66
  "frozenlist==1.4.1",
67
- "google-ai-generativelanguage==0.6.9",
67
+ "google-ai-generativelanguage==0.6.10",
68
68
  "google-api-core==2.15.0",
69
69
  "google-api-core[grpc]==2.15.0",
70
70
  "google-api-python-client==2.125.0",
71
71
  "google-auth==2.26.1",
72
72
  "google-auth-httplib2==0.2.0",
73
73
  "google-cloud-texttospeech==2.16.3",
74
- "google-generativeai==0.8.1",
74
+ "google-generativeai==0.8.3",
75
75
  "google-search-results==2.4.2",
76
76
  "googleapis-common-protos==1.62.0",
77
77
  "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\"",
@@ -87,11 +87,11 @@ locked = [
87
87
  "jiter==0.5.0",
88
88
  "jsonpatch==1.33",
89
89
  "jsonpointer==2.4",
90
- "langchain==0.3.0",
91
- "langchain-community==0.3.0",
92
- "langchain-core==0.3.0",
90
+ "langchain==0.3.3",
91
+ "langchain-community==0.3.2",
92
+ "langchain-core==0.3.10",
93
93
  "langchain-text-splitters==0.3.0",
94
- "langsmith==0.1.120",
94
+ "langsmith==0.1.133",
95
95
  "lingua-language-detector==2.0.2 ; python_version < \"3.13\"",
96
96
  "markdown-it-py==3.0.0",
97
97
  "marshmallow==3.20.1",
@@ -102,10 +102,11 @@ locked = [
102
102
  "mypy-extensions==1.0.0",
103
103
  "numexpr==2.10.1",
104
104
  "numpy==1.26.3",
105
- "openai==1.45.0",
105
+ "openai==1.51.2",
106
106
  "orjson==3.10.0",
107
107
  "ormsgpack==1.5.0",
108
108
  "packaging==23.2",
109
+ "propcache==0.2.0",
109
110
  "proto-plus==1.23.0",
110
111
  "protobuf==4.25.1",
111
112
  "pyasn1==0.5.1",
@@ -119,7 +120,8 @@ locked = [
119
120
  "python-dotenv==1.0.1",
120
121
  "pyyaml==6.0.2",
121
122
  "requests==2.31.0",
122
- "rich==13.8.1",
123
+ "requests-toolbelt==1.0.0",
124
+ "rich==13.9.2",
123
125
  "rsa==4.9",
124
126
  "sniffio==1.3.0",
125
127
  "socksio==1.0.0",
@@ -134,7 +136,7 @@ locked = [
134
136
  "urllib3==2.1.0",
135
137
  "websocket-client==1.8.0",
136
138
  "websockets==12.0",
137
- "yarl==1.9.4",
139
+ "yarl==1.14.0",
138
140
  "zhipuai==2.1.5.20230904",
139
141
  ]
140
142
 
@@ -274,6 +274,7 @@ class MiGPT:
274
274
  message = message.strip().replace(" ", "--")
275
275
  message = message.replace("\n", ",")
276
276
  message = message.replace('"', ",")
277
+ message = message.replace("*", "")
277
278
  return message
278
279
 
279
280
  async def ask_gpt(self, query: str) -> AsyncIterator[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
File without changes
File without changes