AstrBot 4.10.0__py3-none-any.whl → 4.10.0a2__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.
- astrbot/cli/__init__.py +1 -1
- astrbot/core/config/default.py +1 -1
- astrbot/core/provider/sources/gemini_source.py +3 -19
- {astrbot-4.10.0.dist-info → astrbot-4.10.0a2.dist-info}/METADATA +1 -1
- {astrbot-4.10.0.dist-info → astrbot-4.10.0a2.dist-info}/RECORD +8 -8
- {astrbot-4.10.0.dist-info → astrbot-4.10.0a2.dist-info}/WHEEL +0 -0
- {astrbot-4.10.0.dist-info → astrbot-4.10.0a2.dist-info}/entry_points.txt +0 -0
- {astrbot-4.10.0.dist-info → astrbot-4.10.0a2.dist-info}/licenses/LICENSE +0 -0
astrbot/cli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.10.0"
|
|
1
|
+
__version__ = "4.10.0-alpha.2"
|
astrbot/core/config/default.py
CHANGED
|
@@ -138,7 +138,7 @@ class ProviderGoogleGenAI(Provider):
|
|
|
138
138
|
modalities = ["TEXT"]
|
|
139
139
|
|
|
140
140
|
tool_list: list[types.Tool] | None = []
|
|
141
|
-
model_name =
|
|
141
|
+
model_name = payloads.get("model", self.get_model())
|
|
142
142
|
native_coderunner = self.provider_config.get("gm_native_coderunner", False)
|
|
143
143
|
native_search = self.provider_config.get("gm_native_search", False)
|
|
144
144
|
url_context = self.provider_config.get("gm_url_context", False)
|
|
@@ -199,16 +199,7 @@ class ProviderGoogleGenAI(Provider):
|
|
|
199
199
|
|
|
200
200
|
# oper thinking config
|
|
201
201
|
thinking_config = None
|
|
202
|
-
if model_name
|
|
203
|
-
"gemini-2.5-pro",
|
|
204
|
-
"gemini-2.5-pro-preview",
|
|
205
|
-
"gemini-2.5-flash",
|
|
206
|
-
"gemini-2.5-flash-preview",
|
|
207
|
-
"gemini-2.5-flash-lite",
|
|
208
|
-
"gemini-2.5-flash-lite-preview",
|
|
209
|
-
"gemini-robotics-er-1.5-preview",
|
|
210
|
-
"gemini-live-2.5-flash-preview-native-audio-09-2025",
|
|
211
|
-
]:
|
|
202
|
+
if model_name.startswith("gemini-2.5"):
|
|
212
203
|
# The thinkingBudget parameter, introduced with the Gemini 2.5 series
|
|
213
204
|
thinking_budget = self.provider_config.get("gm_thinking_config", {}).get(
|
|
214
205
|
"budget", 0
|
|
@@ -217,14 +208,7 @@ class ProviderGoogleGenAI(Provider):
|
|
|
217
208
|
thinking_config = types.ThinkingConfig(
|
|
218
209
|
thinking_budget=thinking_budget,
|
|
219
210
|
)
|
|
220
|
-
elif model_name
|
|
221
|
-
"gemini-3-pro",
|
|
222
|
-
"gemini-3-pro-preview",
|
|
223
|
-
"gemini-3-flash",
|
|
224
|
-
"gemini-3-flash-preview",
|
|
225
|
-
"gemini-3-flash-lite",
|
|
226
|
-
"gemini-3-flash-lite-preview",
|
|
227
|
-
]:
|
|
211
|
+
elif model_name.startswith("gemini-3"):
|
|
228
212
|
# The thinkingLevel parameter, recommended for Gemini 3 models and onwards
|
|
229
213
|
# Gemini 2.5 series models don't support thinkingLevel; use thinkingBudget instead.
|
|
230
214
|
thinking_level = self.provider_config.get("gm_thinking_config", {}).get(
|
|
@@ -8,7 +8,7 @@ astrbot/api/platform/__init__.py,sha256=HXvAy_KLtOJspoGVgDtLa7VjIZoF6WK3Puww55yy
|
|
|
8
8
|
astrbot/api/provider/__init__.py,sha256=mJVcon0snjn_xYirk2hntwba6ymIYYC-ZKKmxvx-jok,379
|
|
9
9
|
astrbot/api/star/__init__.py,sha256=OxgHGtWn3lEQGjb4twbpbWnRepUevPu7gxtDAkAsfhQ,250
|
|
10
10
|
astrbot/api/util/__init__.py,sha256=L1O_mFEUDk8V4lEPsT5iiNbIiOVh7HbrNmitqzUWMZg,180
|
|
11
|
-
astrbot/cli/__init__.py,sha256=
|
|
11
|
+
astrbot/cli/__init__.py,sha256=vYMGLIAtrcfVYpfNrLlmi2Xv-qyiORAeTv0GOkx_SJ4,31
|
|
12
12
|
astrbot/cli/__main__.py,sha256=QobgMyFoLNTgI_OYddhGOZ9ZvQeBVjjz79mA2cC2OEU,1758
|
|
13
13
|
astrbot/cli/commands/__init__.py,sha256=eAgppZQIqFO1ylQJFABeYrzQ0oZqPWjtE80aKIPB3ks,149
|
|
14
14
|
astrbot/cli/commands/cmd_conf.py,sha256=6-YLicBt_zjWTzaVLUJ1VQLQPbDEPYACB9IVnN8Zvng,6330
|
|
@@ -56,7 +56,7 @@ astrbot/core/agent/runners/dify/dify_agent_runner.py,sha256=LYwpjOcBWf3XlwNVzrDv
|
|
|
56
56
|
astrbot/core/agent/runners/dify/dify_api_client.py,sha256=OXukDVgNx3VmYw6OCzjXyP8JmDWEFuy81sD9XnC4VRo,6530
|
|
57
57
|
astrbot/core/config/__init__.py,sha256=vZjtpC7vr-IvBgSUtbS04C0wpulmCG5tPmcEP1WYE_4,172
|
|
58
58
|
astrbot/core/config/astrbot_config.py,sha256=6bUTnMCOyaS8s6ELsWctDfUFTB53fKJQNu272dZXkdU,6347
|
|
59
|
-
astrbot/core/config/default.py,sha256=
|
|
59
|
+
astrbot/core/config/default.py,sha256=PZqJd9umFqk--hoO3f198YebuJjym1hr1ho0R-TcJEg,147682
|
|
60
60
|
astrbot/core/config/i18n_utils.py,sha256=HJn_0XeeVS9ryCBelYfnc0nEn10LlX702fcSSFrF1J8,3879
|
|
61
61
|
astrbot/core/db/__init__.py,sha256=OnvNaC76hYp28Bq9zkFXMl19zn7w-FC1zxyLgsemGvU,13400
|
|
62
62
|
astrbot/core/db/po.py,sha256=eoI4sjpFb9CwRy6_Gf6-zHVSka6-oJr0LA4qcepqHzU,11804
|
|
@@ -190,7 +190,7 @@ astrbot/core/provider/sources/dashscope_tts.py,sha256=-qBMwbIt_QSmWCT_uPAxrXSYuE
|
|
|
190
190
|
astrbot/core/provider/sources/edge_tts_source.py,sha256=dsf6YtSGzCJvas3BqBwHSn8vlMgQ_vgD9NEwngqDlEo,4690
|
|
191
191
|
astrbot/core/provider/sources/fishaudio_tts_api_source.py,sha256=z5yJuc47iky31N0Za3Li7uwMP15N1gsKJkV9ybIbKew,5556
|
|
192
192
|
astrbot/core/provider/sources/gemini_embedding_source.py,sha256=bj4iXnMyONTyUBmBFeezPcBpjtfX_UBjMrbwMFyCis8,2607
|
|
193
|
-
astrbot/core/provider/sources/gemini_source.py,sha256=
|
|
193
|
+
astrbot/core/provider/sources/gemini_source.py,sha256=7CoVxKvC4mPU4pnVbjplvl2AMHwcNpq4UAQR-nIJrN4,33379
|
|
194
194
|
astrbot/core/provider/sources/gemini_tts_source.py,sha256=6LJIT2aTjoZaMszjYRzDu38prsO9G5Xg7SzJmQb2TzE,2880
|
|
195
195
|
astrbot/core/provider/sources/groq_source.py,sha256=NqmiQn37mrMsaTyGX25eNzMpIgkCifY-5TJO8DFzHaA,456
|
|
196
196
|
astrbot/core/provider/sources/gsv_selfhosted_source.py,sha256=RYQgwCc67N7RWPaODN4sSLJZn6o5gpgk_jF_KaRnD0M,5942
|
|
@@ -275,8 +275,8 @@ astrbot/dashboard/routes/static_file.py,sha256=7KnNcOb1BVqSTft114LhGsDkfg69X2jHE
|
|
|
275
275
|
astrbot/dashboard/routes/t2i.py,sha256=F6smxdL99MF7cRw3hqS6-2GErw8Zhsv0V0mfBUeEk-c,8931
|
|
276
276
|
astrbot/dashboard/routes/tools.py,sha256=mMwVFw_VOlpqy_WZg1A-ddGtYa5L5QLWYawl37PT0-c,15354
|
|
277
277
|
astrbot/dashboard/routes/update.py,sha256=qXiqQ_dbqRVftOzGgCQrvK8-qopVK6zKhhVVJ9SK26U,6648
|
|
278
|
-
astrbot-4.10.
|
|
279
|
-
astrbot-4.10.
|
|
280
|
-
astrbot-4.10.
|
|
281
|
-
astrbot-4.10.
|
|
282
|
-
astrbot-4.10.
|
|
278
|
+
astrbot-4.10.0a2.dist-info/METADATA,sha256=dmgs6DYXW_icwZr96p5YFO34byt1_H9dyiey7Ocq568,11927
|
|
279
|
+
astrbot-4.10.0a2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
280
|
+
astrbot-4.10.0a2.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
|
|
281
|
+
astrbot-4.10.0a2.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
|
|
282
|
+
astrbot-4.10.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|