AstrBot 4.10.5__py3-none-any.whl → 4.10.6__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "4.10.5"
1
+ __version__ = "4.10.6"
@@ -5,7 +5,7 @@ from typing import Any, TypedDict
5
5
 
6
6
  from astrbot.core.utils.astrbot_path import get_astrbot_data_path
7
7
 
8
- VERSION = "4.10.5"
8
+ VERSION = "4.10.6"
9
9
  DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
10
10
 
11
11
  WEBHOOK_SUPPORTED_PLATFORMS = [
@@ -378,7 +378,8 @@ class ProviderOpenAIOfficial(Provider):
378
378
  new_content.append(part)
379
379
  message["content"] = new_content
380
380
  # reasoning key is "reasoning_content"
381
- message["reasoning_content"] = reasoning_content
381
+ if reasoning_content:
382
+ message["reasoning_content"] = reasoning_content
382
383
 
383
384
  async def _handle_api_error(
384
385
  self,
@@ -1,3 +1,5 @@
1
+ import fnmatch
2
+
1
3
  from astrbot.core.utils.shared_preferences import SharedPreferences
2
4
 
3
5
 
@@ -30,7 +32,7 @@ class UmopConfigRouter:
30
32
  if len(p1_ls) != 3 or len(p2_ls) != 3:
31
33
  return False # 非法格式
32
34
 
33
- return all(p == "" or p == "*" or p == t for p, t in zip(p1_ls, p2_ls))
35
+ return all(p == "" or fnmatch.fnmatchcase(t, p) for p, t in zip(p1_ls, p2_ls))
34
36
 
35
37
  def get_conf_id_for_umop(self, umo: str) -> str | None:
36
38
  """根据 UMO 获取对应的配置文件 ID
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AstrBot
3
- Version: 4.10.5
3
+ Version: 4.10.6
4
4
  Summary: Easy-to-use multi-platform LLM chatbot and development framework
5
5
  License-File: LICENSE
6
6
  Keywords: Astrbot,Astrbot Module,Astrbot Plugin
@@ -42,7 +42,7 @@ astrbot/builtin_stars/web_searcher/metadata.yaml,sha256=aHAKtP8UZJaddzIN2eFfglTO
42
42
  astrbot/builtin_stars/web_searcher/engines/__init__.py,sha256=yQtZwF4E19yVcyRIOLP9KEgnADXjeQd-AmCtVZtvjBs,4269
43
43
  astrbot/builtin_stars/web_searcher/engines/bing.py,sha256=pn3DPR-5SO2D_RtBIU3l9Ph7PTUB-FCZAMCYuk6kd6Q,1035
44
44
  astrbot/builtin_stars/web_searcher/engines/sogo.py,sha256=YA7pA5-335r7UgKpyUPAeGGZQbYEwDBO8bm08Ro8Xg0,1701
45
- astrbot/cli/__init__.py,sha256=O_R1-3zu8hGnNDaSDLlSZzTMe3eQ10t2Q-z7lAVkAHw,23
45
+ astrbot/cli/__init__.py,sha256=LnaaE65uYqAHPesJ4uUoxmAKcJu_baoBl6Yxf5sSvLs,23
46
46
  astrbot/cli/__main__.py,sha256=QobgMyFoLNTgI_OYddhGOZ9ZvQeBVjjz79mA2cC2OEU,1758
47
47
  astrbot/cli/commands/__init__.py,sha256=eAgppZQIqFO1ylQJFABeYrzQ0oZqPWjtE80aKIPB3ks,149
48
48
  astrbot/cli/commands/cmd_conf.py,sha256=6-YLicBt_zjWTzaVLUJ1VQLQPbDEPYACB9IVnN8Zvng,6330
@@ -68,7 +68,7 @@ astrbot/core/initial_loader.py,sha256=q798G8wEti7-p3UC0y1GB3MOK-kO6z1Nt826iO5nJV
68
68
  astrbot/core/log.py,sha256=85jID6PgcFx8S6RzBIjF-AJa8FQniqE5NNQuXUSQOCo,8545
69
69
  astrbot/core/persona_mgr.py,sha256=g6Xzhrvlvk9YRrcPNEpevHiCa6GVfut9NoKX7PRNmXM,7434
70
70
  astrbot/core/platform_message_history_mgr.py,sha256=0frxrq6Bt18OXbt24uRnQl039wpi2gK5L9ONLtBuMsM,1580
71
- astrbot/core/umop_config_router.py,sha256=PpCZ_SoQ6yXfgCJQiAVtuXYoowhEt2J-lCflHxNPoD0,3642
71
+ astrbot/core/umop_config_router.py,sha256=6xCFQUrepsu-FDjtNE71eu2IUM-6LkU7BD4Ft0eTVhk,3665
72
72
  astrbot/core/updator.py,sha256=-F9elTgp4UwCdGEPwUwA0SAMQpouvAruktH4uh6nTwY,4666
73
73
  astrbot/core/zip_updator.py,sha256=xBCtHl7XnlMksnS79e8j-FonfB3Lvs95rTmwoo1Z1T0,8824
74
74
  astrbot/core/agent/agent.py,sha256=wquvKo18JcsJM56dwKyFFAoGhc5qLyQaeqdZ-LlZsWQ,366
@@ -94,7 +94,7 @@ astrbot/core/backup/exporter.py,sha256=tULFmXhYqRhJtAwePFkxXMSKqct1MSMyISv9LrfKw
94
94
  astrbot/core/backup/importer.py,sha256=efGW5-5ZAfvN1mg4rcc5OrcFTLfyj7L9T0Yd7SBUlNo,28618
95
95
  astrbot/core/config/__init__.py,sha256=vZjtpC7vr-IvBgSUtbS04C0wpulmCG5tPmcEP1WYE_4,172
96
96
  astrbot/core/config/astrbot_config.py,sha256=5r2VhCNO4VuGCqct12g10-TcvAKyXV40-suk5vRMGns,6436
97
- astrbot/core/config/default.py,sha256=CualuB7oEsaGd0-XjEyLHWXdyOLCxFyGFHBSUugq6Eo,149877
97
+ astrbot/core/config/default.py,sha256=BoD4mxWm-f9FgaE5lKhoTH8xW1vaKQL_q1P3PdeLImw,149877
98
98
  astrbot/core/config/i18n_utils.py,sha256=HJn_0XeeVS9ryCBelYfnc0nEn10LlX702fcSSFrF1J8,3879
99
99
  astrbot/core/db/__init__.py,sha256=OnvNaC76hYp28Bq9zkFXMl19zn7w-FC1zxyLgsemGvU,13400
100
100
  astrbot/core/db/po.py,sha256=eoI4sjpFb9CwRy6_Gf6-zHVSka6-oJr0LA4qcepqHzU,11804
@@ -235,7 +235,7 @@ astrbot/core/provider/sources/gsv_selfhosted_source.py,sha256=RYQgwCc67N7RWPaODN
235
235
  astrbot/core/provider/sources/gsvi_tts_source.py,sha256=nGGctfkzrAeTofAvB2b_VNTYHW44SzyO12B-mBWb1rY,2011
236
236
  astrbot/core/provider/sources/minimax_tts_api_source.py,sha256=IA_q9o7CyrCNl4p0KBMIpHFoSrZcvVdgazdrXVxSpPI,6027
237
237
  astrbot/core/provider/sources/openai_embedding_source.py,sha256=TMUU7J-uo3KrERr1ZKTjoNK9byEm-IU0UZK5YHM3WpM,1614
238
- astrbot/core/provider/sources/openai_source.py,sha256=VUXFWdAri8E8WnQXiNiWWhti2eudaF1uoxUwPNAUESc,26761
238
+ astrbot/core/provider/sources/openai_source.py,sha256=z6xV8uMvbuKhYzVvz4AAdhG2L-gXq9-dmiXWrX4BowM,26803
239
239
  astrbot/core/provider/sources/openai_tts_api_source.py,sha256=DVviGQdBpCk6lW3LjnJHzwZr9wGkXRDNwfoQ3FYFVcs,1667
240
240
  astrbot/core/provider/sources/sensevoice_selfhosted_source.py,sha256=99I6OfSUDJDgXCKK__QNk8EaCbX3TElGIbjBY6VJkWg,3900
241
241
  astrbot/core/provider/sources/vllm_rerank_source.py,sha256=-aXaIPRIgzzGDA7ev4Nuq4FTBM_qwMPgc5SpMtIWTKI,2355
@@ -315,8 +315,8 @@ astrbot/dashboard/routes/static_file.py,sha256=7KnNcOb1BVqSTft114LhGsDkfg69X2jHE
315
315
  astrbot/dashboard/routes/t2i.py,sha256=F6smxdL99MF7cRw3hqS6-2GErw8Zhsv0V0mfBUeEk-c,8931
316
316
  astrbot/dashboard/routes/tools.py,sha256=mMwVFw_VOlpqy_WZg1A-ddGtYa5L5QLWYawl37PT0-c,15354
317
317
  astrbot/dashboard/routes/update.py,sha256=qXiqQ_dbqRVftOzGgCQrvK8-qopVK6zKhhVVJ9SK26U,6648
318
- astrbot-4.10.5.dist-info/METADATA,sha256=m56i0urxmJKT8ytHwslI3432ebpSQ7_2bvvpslqd5Sg,11932
319
- astrbot-4.10.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
320
- astrbot-4.10.5.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
321
- astrbot-4.10.5.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
322
- astrbot-4.10.5.dist-info/RECORD,,
318
+ astrbot-4.10.6.dist-info/METADATA,sha256=BaJqDOqHJwLQ7r4kO50Wo0z8QbjfeLebX7UkawM3o9k,11932
319
+ astrbot-4.10.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
320
+ astrbot-4.10.6.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
321
+ astrbot-4.10.6.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
322
+ astrbot-4.10.6.dist-info/RECORD,,