AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug] 配置在特定会话静默调用未使用模型

Open pjh456 opened this issue 6 months ago • 1 comments

What happened / 发生了什么

在普通配置中指定了供应商模型,但每次都调用一个未在配置里使用的模型,导致每次优先调用这一未使用模型。

下面的配置文件中,可以看到 "default_provider_id": "newapi/gpt-5.5",然而日志里每次都报错 Switched from deepseek/deepseek-v4-flash to fallback chat provider: newapi/gpt-5.5。其中 deepseek/deepseek-v4-flash 是曾经启用,后来早就取消勾选的供应商,目前已无额度而导致回退,但未在供应商列表里停用。

这一问题只在某一群聊发生,私聊不会发生。然而全局均运用同一配置文件,且即使调用 reset 指令清除记忆也无效。在问题发生前未对不同会话改动任何自定义规则。

配置如下,敏感信息已做脱敏处理。

{
  "config_version": 2,
  "platform_settings": {
    "unique_session": false,
    "rate_limit": {
      "time": 60,
      "count": 60,
      "strategy": "stall"
    },
    "reply_prefix": "",
    "forward_threshold": 1500,
    "enable_id_white_list": false,
    "id_whitelist": [],
    "id_whitelist_log": true,
    "wl_ignore_admin_on_group": true,
    "wl_ignore_admin_on_friend": true,
    "reply_with_mention": false,
    "reply_with_quote": true,
    "path_mapping": [],
    "segmented_reply": {
      "enable": false,
      "only_llm_result": true,
      "interval_method": "random",
      "interval": "1.5,3.5",
      "log_base": 2.6,
      "words_count_threshold": 150,
      "split_mode": "regex",
      "regex": ".*?[。?!~…]+|.+$",
      "split_words": [
        "。",
        "?",
        "!",
        "~",
        "…"
      ],
      "content_cleanup_rule": ""
    },
    "no_permission_reply": true,
    "empty_mention_waiting": true,
    "empty_mention_waiting_need_reply": true,
    "friend_message_needs_wake_prefix": false,
    "ignore_bot_self_message": false,
    "ignore_at_all": true
  },
  "provider_sources": [],
  "provider": [],
  "provider_settings": {
    "enable": true,
    "default_provider_id": "newapi/gpt-5.5",
    "fallback_chat_models": [
      "newapi/gpt-5.5",
      "newapi/gpt-5.4",
      "newapi/gpt-5.2",
      "newapi/gpt-5.1"
    ],
    "default_image_caption_provider_id": "",
    "image_caption_prompt": "Please describe the image using Chinese.",
    "provider_pool": [
      "*"
    ],
    "wake_prefix": "",
    "web_search": true,
    "websearch_provider": "tavily",
    "websearch_tavily_key": [
      "tvly-dev-xxx"
    ],
    "websearch_bocha_key": [],
    "websearch_brave_key": [],
    "websearch_baidu_app_builder_key": "",
    "websearch_firecrawl_key": [],
    "web_search_link": true,
    "display_reasoning_text": false,
    "identifier": true,
    "group_name_display": true,
    "datetime_system_prompt": true,
    "default_personality": "murasame_skill",
    "persona_pool": [
      "*"
    ],
    "prompt_prefix": "{{prompt}}",
    "context_limit_reached_strategy": "truncate_by_turns",
    "llm_compress_instruction": "Based on our full conversation history, produce a concise summary of key takeaways and/or project progress.\n1. Systematically cover all core topics discussed and the final conclusion/outcome for each; clearly highlight the latest primary focus.\n2. If any tools were used, summarize tool usage (total call count) and extract the most valuable insights from tool outputs.\n3. If there was an initial user goal, state it first and describe the current progress/status.\n4. Write the summary in the user's language.\n",
    "llm_compress_keep_recent": 50,
    "llm_compress_provider_id": "",
    "max_context_length": -1,
    "dequeue_context_length": 1,
    "streaming_response": false,
    "show_tool_use_status": false,
    "show_tool_call_result": false,
    "buffer_intermediate_messages": false,
    "sanitize_context_by_modalities": false,
    "max_quoted_fallback_images": 20,
    "quoted_message_parser": {
      "max_component_chain_depth": 5,
      "max_forward_node_depth": 10,
      "max_forward_fetch": 32,
      "warn_on_action_failure": true
    },
    "agent_runner_type": "local",
    "dify_agent_runner_provider_id": "",
    "coze_agent_runner_provider_id": "",
    "dashscope_agent_runner_provider_id": "",
    "deerflow_agent_runner_provider_id": "",
    "unsupported_streaming_strategy": "realtime_segmenting",
    "reachability_check": false,
    "max_agent_step": 30,
    "tool_call_timeout": 120,
    "tool_schema_mode": "skills_like",
    "llm_safety_mode": false,
    "safety_mode_strategy": "system_prompt",
    "file_extract": {
      "enable": false,
      "provider": "moonshotai",
      "moonshotai_api_key": ""
    },
    "proactive_capability": {
      "add_cron_tools": true
    },
    "computer_use_runtime": "local",
    "computer_use_require_admin": true,
    "sandbox": {
      "booter": "shipyard_neo",
      "shipyard_endpoint": "",
      "shipyard_access_token": "",
      "shipyard_ttl": 3600,
      "shipyard_max_sessions": 10,
      "shipyard_neo_endpoint": "",
      "shipyard_neo_access_token": "",
      "shipyard_neo_profile": "python-default",
      "shipyard_neo_ttl": 3600,
      "cua_image": "linux",
      "cua_os_type": "linux",
      "cua_idle_timeout": 0,
      "cua_telemetry_enabled": false,
      "cua_local": true,
      "cua_api_key": ""
    },
    "image_compress_enabled": true,
    "image_compress_options": {
      "max_size": 1280,
      "quality": 95
    }
  },
  "subagent_orchestrator": {
    "main_enable": false,
    "remove_main_duplicate_tools": false,
    "router_system_prompt": "You are a task router. Your job is to chat naturally, recognize user intent, and delegate work to the most suitable subagent using transfer_to_* tools. Do not try to use domain tools yourself. If no subagent fits, respond directly.",
    "agents": []
  },
  "provider_stt_settings": {
    "enable": false,
    "provider_id": ""
  },
  "provider_tts_settings": {
    "enable": true,
    "provider_id": "gsv_tts",
    "dual_output": true,
    "use_file_service": false,
    "trigger_probability": 1
  },
  "provider_ltm_settings": {
    "group_icl_enable": true,
    "group_message_max_cnt": 300,
    "image_caption": false,
    "image_caption_provider_id": "",
    "active_reply": {
      "enable": false,
      "method": "possibility_reply",
      "possibility_reply": 0.1,
      "whitelist": []
    }
  },
  "content_safety": {
    "also_use_in_response": false,
    "internal_keywords": {
      "enable": false,
      "extra_keywords": []
    },
    "baidu_aip": {
      "enable": false,
      "app_id": "",
      "api_key": "",
      "secret_key": ""
    }
  },
  "admins_id": [
    "xxx"
  ],
  "t2i": true,
  "t2i_word_threshold": 1,
  "t2i_strategy": "remote",
  "t2i_endpoint": "",
  "t2i_use_file_service": false,
  "t2i_active_template": "base",
  "http_proxy": "",
  "no_proxy": [
    "localhost",
    "127.0.0.1",
    "::1",
    "10.*",
    "192.168.*"
  ],
  "dashboard": {
    "enable": true,
    "username": "astrbot",
    "password": "xxx",
    "pbkdf2_password": "",
    "password_storage_upgraded": false,
    "password_change_required": false,
    "jwt_secret": "",
    "host": "0.0.0.0",
    "port": 6185,
    "disable_access_log": true,
    "ssl": {
      "enable": false,
      "cert_file": "",
      "key_file": "",
      "ca_certs": ""
    }
  },
  "platform": [],
  "platform_specific": {
    "lark": {
      "pre_ack_emoji": {
        "enable": false,
        "emojis": [
          "Typing"
        ]
      }
    },
    "telegram": {
      "pre_ack_emoji": {
        "enable": false,
        "emojis": [
          "✍️"
        ]
      }
    },
    "discord": {
      "pre_ack_emoji": {
        "enable": false,
        "emojis": [
          "🤔"
        ]
      }
    }
  },
  "wake_prefix": [
    "./"
  ],
  "log_level": "INFO",
  "log_file_enable": false,
  "log_file_path": "logs/astrbot.log",
  "log_file_max_mb": 20,
  "temp_dir_max_size": 1024,
  "trace_enable": false,
  "trace_log_enable": false,
  "trace_log_path": "logs/astrbot.trace.log",
  "trace_log_max_mb": 20,
  "pip_install_arg": "",
  "pypi_index_url": "https://mirrors.aliyun.com/pypi/simple/",
  "persona": [],
  "timezone": "Asia/Shanghai",
  "callback_api_base": "",
  "default_kb_collection": "",
  "plugin_set": [
    "astrbot_plugin_minecraftconsole",
    "astrbot_plugin_AtTool",
    "astrbot_plugin_fortnue",
    "astrbot_plugin_chuanhuatong",
    "vv_pic",
    "astrbot_plugin_command_query",
    "zhiyu-astrbot-hjm",
    "astrbot_plugin_github_analyzer",
    "astrbot_plugin_echo",
    "astrbot_plugin_reneban",
    "astrbot_plugin_livingmemory",
    "astrbot_plugin_uapipro_toolbox",
    "astrbot_plugin_llm_executor",
    "astrbot_plugin_proactive_chat",
    "astrbot_plugin_auto_approve_all",
    "group_sign",
    "qq_group_sign",
    "astrbot_plugin_qzone_tools",
    "astrbot_plugin_lili_state",
    "favorpro",
    "astrbot_plugin_pic_mirror"
  ],
  "kb_names": [],
  "kb_fusion_top_k": 20,
  "kb_final_top_k": 5,
  "kb_agentic_mode": false,
  "disable_builtin_commands": false,
  "disable_metrics": false
}

因为这一问题,我无感调用弃用的 API 已经烧掉了 20 RMB!

Reproduce / 如何复现?

我对复现该问题没有任何头绪,且我现在仍然被这一问题困扰。

无论是 reset 指令,更新 AstrBot 版本,还是重启部署的 Docker 容器,该问题始终存在。

目前可知的是没有添加任何额外调用 LLM 的插件和子代理,因此不大可能是其他插件的问题。

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

4.24.4 Astrbot,Linux Docker Compose 部署,使用 newapi 第三方中转站供应商(OpenAI 兼容接口),aiocqhttp / OneBot v11 (对接 NapCat) 消息平台适配器

OS

Linux

Logs / 报错日志

敏感信息已做脱敏处理,由于这一未勾选模型的额度已被用完,每次都会自动报错并回退到备用模型。

报错群聊的日志信息如下所示:

[2026-05-20 17:07:50.988] [Core]
[INFO]
[core.event_bus:61]: [murasame_skill] [murasame(aiocqhttp)] xxx/xxx: [At:xxx] 背登鹳雀楼 
[2026-05-20 17:07:50.989] [Core] [DBUG] [waking_check.stage:158]: enabled_plugins_name: ['astrbot_plugin_minecraftconsole', 'astrbot_plugin_AtTool', 'astrbot_plugin_fortnue', 'astrbot_plugin_chuanhuatong', 'vv_pic', 'astrbot_plugin_command_query', 'zhiyu-astrbot-hjm', 'astrbot_plugin_github_analyzer', 'astrbot_plugin_echo', 'astrbot_plugin_reneban', 'astrbot_plugin_livingmemory', 'astrbot_plugin_uapipro_toolbox', 'astrbot_plugin_llm_executor', 'astrbot_plugin_proactive_chat', 'astrbot_plugin_auto_approve_all', 'group_sign', 'qq_group_sign', 'astrbot_plugin_qzone_tools', 'astrbot_plugin_lili_state', 'favorpro', 'astrbot_plugin_pic_mirror']
[2026-05-20 17:07:50.992] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-05-20 17:07:50.992] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-05-20 17:07:50.992] [Core] [DBUG] [method.star_request:46]: plugin -> qq_group_sign - _capture_bot_instance
[2026-05-20 17:07:50.992] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_proactive_chat - on_group_message
[2026-05-20 17:07:50.993] [Plug] [DBUG] [core.message_events:155]: [主动消息] 记录 群聊 xxx 的消息时间戳喵: 1779268070.993008
[2026-05-20 17:07:50.993] [Plug] [DBUG] [core.message_events:174]: [主动消息] 已记录插件启动后 群聊 xxx 的消息时间喵 -> 1779268070.993008
[2026-05-20 17:07:50.993] [Plug] [DBUG] [core.message_events:200]: [主动消息] 群聊 xxx 未启用或配置无效,跳过处理喵。
[2026-05-20 17:07:50.993] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_reneban - filter_banned_users
[2026-05-20 17:07:50.993] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_auto_approve_all - event_monitoring
[2026-05-20 17:07:50.993] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-05-20 17:07:50.994] [Plug] [DBUG] [astrbot.long_term_memory:146]: ltm | murasame:GroupMessage:xxx | [xxx/17:07:50]:  [At: xxx] 背登鹳雀楼
[2026-05-20 17:07:50.994] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_pic_mirror - handle_all_mirror_commands
[2026-05-20 17:07:50.996] [Core] [DBUG] [agent_sub_stages.internal:181]: ready to request llm provider
[2026-05-20 17:07:50.996] [Core] [DBUG] [agent_sub_stages.internal:204]: acquired session lock for llm request
[2026-05-20 17:07:51.007] [Core] [DBUG] [tools.knowledge_base_tools:61]: [知识库] 使用全局配置,知识库数量: 0
[2026-05-20 17:07:51.008] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot_plugin_qzone_tools - on_llm_request
[2026-05-20 17:07:51.008] [Plug] [DBUG] [astrbot_plugin_qzone_tools.main:2175]: 获取群成员角色失败: 
[2026-05-20 17:07:51.008] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot_plugin_AtTool - inject_at_instruction
[2026-05-20 17:07:51.008] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-05-20 17:07:51.619] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.IDLE -> AgentState.RUNNING
[2026-05-20 17:07:51.619] [Core] [DBUG] [runners.tool_loop_agent_runner:613]: [BefCompact] RunCtx.messages -> [126] system,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,tool,assistant,tool,tool,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,tool,tool,tool,tool,assistant,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user
[2026-05-20 17:07:51.620] [Core] [DBUG] [runners.tool_loop_agent_runner:613]: [AftCompact] RunCtx.messages -> [126] system,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,tool,assistant,tool,tool,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,tool,tool,tool,tool,assistant,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,tool,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user
[2026-05-20 17:07:52.291] [Core]
[WARN]
[v4.24.5] [runners.tool_loop_agent_runner:555]: Chat Model deepseek/deepseek-v4-flash request error: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}
Traceback (most recent call last):
  File "/AstrBot/astrbot/core/agent/runners/tool_loop_agent_runner.py", line 510, in _iter_llm_responses_with_fallback
    async for attempt in retrying:
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 170, in __anext__
    do = await self.iter(retry_state=self._retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 157, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 111, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 393, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/AstrBot/astrbot/core/agent/runners/tool_loop_agent_runner.py", line 514, in _iter_llm_responses_with_fallback
    async for resp in self._iter_llm_responses(
  File "/AstrBot/astrbot/core/agent/runners/tool_loop_agent_runner.py", line 477, in _iter_llm_responses
    yield await self.provider.text_chat(**payload)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/AstrBot/astrbot/core/provider/sources/openai_source.py", line 1214, in text_chat
    ) = await self._handle_api_error(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/AstrBot/astrbot/core/provider/sources/openai_source.py", line 1160, in _handle_api_error
    raise e
  File "/AstrBot/astrbot/core/provider/sources/openai_source.py", line 1202, in text_chat
    llm_response = await self._query(payloads, func_tool)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/AstrBot/astrbot/core/provider/sources/openai_source.py", line 596, in _query
    completion = await self.client.chat.completions.create(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/openai/resources/chat/completions/completions.py", line 2739, in create
    return await self._post(
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1931, in post
    return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1716, in request
    raise self._make_status_error_from_response(err.response) from None
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}
[2026-05-20 17:07:52.303] [Core]
[WARN]
[v4.24.5] [runners.tool_loop_agent_runner:492]: Switched from deepseek/deepseek-v4-flash to fallback chat provider: newapi/gpt-5.5
[2026-05-20 17:07:57.142] [Core] [DBUG] [sources.openai_source:607]: completion: ChatCompletion(id='resp_055de4b40e28ff0b016a0d79e999008195b8dd477ec83f8b3c', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content='主人,听好了。\n\n登鹳雀楼  \n王之涣\n\n白日依山尽,  \n黄河入海流。  \n欲穷千里目,  \n更上一层楼。', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1779268076, model='gpt-5.5', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=47, prompt_tokens=60361, total_tokens=60408, completion_tokens_details=None, prompt_tokens_details=PromptTokensDetails(audio_tokens=None, cached_tokens=3584)))
[2026-05-20 17:07:57.143] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.RUNNING -> AgentState.DONE
[2026-05-20 17:07:57.143] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot_plugin_qzone_tools - on_llm_response
[2026-05-20 17:07:57.143] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot - record_llm_resp_to_ltm
[2026-05-20 17:07:57.144] [Plug] [DBUG] [astrbot.long_term_memory:182]: Recorded AI response: murasame:GroupMessage:xxx | [You/17:07:57]: 主人,听好了。

登鹳雀楼  
王之涣

白日依山尽,  
黄河入海流。  
欲穷千里目,  
更上一层楼。
[2026-05-20 17:07:57.144] [Core] [DBUG] [result_decorate.stage:165]: hook(on_decorating_result) -> astrbot_plugin_AtTool - process_at_tags
[2026-05-20 17:07:57.148] [Core]
[INFO]
[result_decorate.stage:301]: TTS 请求: 主人,听好了。

登鹳雀楼  
王之涣

白日依山尽,  
黄河入海流。  
欲穷千里目,  
更上一层楼。
[2026-05-20 17:07:57.148] [Core] [DBUG] [sources.gsv_selfhosted_source:128]: [GSV TTS] 正在调用语音合成接口,参数:{'ref_audio_path': '/home/xxx/default_audio/ふむ、お主が我輩のご主人か.ogg', 'prompt_text': 'ふむ、お主が我輩のご主人か', 'prompt_lang': 'ja', 'aux_ref_audio_paths': '', 'text_lang': 'auto', 'top_k': '15', 'top_p': '1', 'temperature': '1', 'text_split_method': 'cut3', 'batch_size': '4', 'batch_threshold': '0.75', 'split_bucket': 'true', 'speed_factor': '1', 'fragment_interval': '0.3', 'streaming_mode': 'false', 'seed': '-1', 'parallel_infer': 'true', 'repetition_penalty': '1.35', 'media_type': 'wav', 'text': '主人,听好了。\n\n登鹳雀楼  \n王之涣\n\n白日依山尽,  \n黄河入海流。  \n欲穷千里目,  \n更上一层楼。'}
[2026-05-20 17:07:57.149] [Core] [DBUG] [sources.gsv_selfhosted_source:69]: [GSV TTS] 请求地址:http://127.0.0.1:9880/tts,参数:{'ref_audio_path': '/home/xxx/default_audio/ふむ、お主が我輩のご主人か.ogg', 'prompt_text': 'ふむ、お主が我輩のご主人か', 'prompt_lang': 'ja', 'aux_ref_audio_paths': '', 'text_lang': 'auto', 'top_k': '15', 'top_p': '1', 'temperature': '1', 'text_split_method': 'cut3', 'batch_size': '4', 'batch_threshold': '0.75', 'split_bucket': 'true', 'speed_factor': '1', 'fragment_interval': '0.3', 'streaming_mode': 'false', 'seed': '-1', 'parallel_infer': 'true', 'repetition_penalty': '1.35', 'media_type': 'wav', 'text': '主人,听好了。\n\n登鹳雀楼  \n王之涣\n\n白日依山尽,  \n黄河入海流。  \n欲穷千里目,  \n更上一层楼。'}
[2026-05-20 17:07:59.639] [Core]
[INFO]
[result_decorate.stage:303]: TTS 结果: /AstrBot/data/temp/gsv_tts_47f0ff23d3824b079061ebef57325d0f.wav
[2026-05-20 17:07:59.639] [Core]
[INFO]
[respond.stage:183]: Prepare to send - xxx/xxx: [ComponentType.Record] 主人,听好了。

登鹳雀楼  
王之涣

白日依山尽,  
黄河入海流。  
欲穷千里目,  
更上一层楼。 
[2026-05-20 17:08:01.435] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnAfterMessageSentEvent) -> astrbot_plugin_proactive_chat - on_after_message_sent
[2026-05-20 17:08:01.435] [Plug] [DBUG] [core.message_events:292]: [主动消息] 群聊 xxx 没有待取消的调度任务喵: 'No job by the id of murasame:GroupMessage:xxx was found'
[2026-05-20 17:08:01.435] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnAfterMessageSentEvent) -> astrbot - after_message_sent
[2026-05-20 17:08:01.447] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。

正常可用的私聊日志如下所示:

[2026-05-20 17:20:15.392] [Core] [DBUG] [aiocqhttp.aiocqhttp_platform_adapter:129]: [aiocqhttp] RawMessage <Event, {'self_id': xxx, 'user_id': xxx, 'time': 1779268815, 'message_id': 162921232, 'message_seq': 162921232, 'real_id': 162921232, 'real_seq': '2755', 'message_type': 'private', 'sender': {'user_id': xxx, 'nickname': '☞♛☜', 'card': ''}, 'raw_message': '123', 'font': 14, 'sub_type': 'friend', 'message': [{'type': 'text', 'data': {'text': '123'}}], 'message_format': 'array', 'post_type': 'message', 'target_id': xxx}>
[2026-05-20 17:20:15.392] [Core]
[INFO]
[core.event_bus:61]: [murasame_skill] [murasame(aiocqhttp)] ☞♛☜/xxx: 123 
[2026-05-20 17:20:15.393] [Core] [DBUG] [waking_check.stage:158]: enabled_plugins_name: ['astrbot_plugin_minecraftconsole', 'astrbot_plugin_AtTool', 'astrbot_plugin_fortnue', 'astrbot_plugin_chuanhuatong', 'vv_pic', 'astrbot_plugin_command_query', 'zhiyu-astrbot-hjm', 'astrbot_plugin_github_analyzer', 'astrbot_plugin_echo', 'astrbot_plugin_reneban', 'astrbot_plugin_livingmemory', 'astrbot_plugin_uapipro_toolbox', 'astrbot_plugin_llm_executor', 'astrbot_plugin_proactive_chat', 'astrbot_plugin_auto_approve_all', 'group_sign', 'qq_group_sign', 'astrbot_plugin_qzone_tools', 'astrbot_plugin_lili_state', 'favorpro', 'astrbot_plugin_pic_mirror']
[2026-05-20 17:20:15.397] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-05-20 17:20:15.397] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-05-20 17:20:15.397] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_proactive_chat - on_friend_message
[2026-05-20 17:20:15.397] [Plug] [DBUG] [core.message_events:75]: [主动消息] 私聊 xxx 未启用或配置无效,跳过处理喵。
[2026-05-20 17:20:15.397] [Core] [DBUG] [method.star_request:46]: plugin -> qq_group_sign - _capture_bot_instance
[2026-05-20 17:20:15.398] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_reneban - filter_banned_users
[2026-05-20 17:20:15.398] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_auto_approve_all - event_monitoring
[2026-05-20 17:20:15.398] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-05-20 17:20:15.398] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot_plugin_pic_mirror - handle_all_mirror_commands
[2026-05-20 17:20:15.400] [Core] [DBUG] [agent_sub_stages.internal:181]: ready to request llm provider
[2026-05-20 17:20:15.400] [Core] [DBUG] [agent_sub_stages.internal:204]: acquired session lock for llm request
[2026-05-20 17:20:15.410] [Core] [DBUG] [tools.knowledge_base_tools:61]: [知识库] 使用全局配置,知识库数量: 0
[2026-05-20 17:20:15.411] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot_plugin_qzone_tools - on_llm_request
[2026-05-20 17:20:15.411] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot_plugin_AtTool - inject_at_instruction
[2026-05-20 17:20:15.411] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-05-20 17:20:15.921] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.IDLE -> AgentState.RUNNING
[2026-05-20 17:20:15.921] [Core] [DBUG] [runners.tool_loop_agent_runner:613]: [BefCompact] RunCtx.messages -> [35] system,user,assistant,tool,assistant,tool,assistant,user,assistant,tool,assistant,tool,tool,tool,assistant,user,assistant,tool,tool,assistant,user,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user
[2026-05-20 17:20:15.921] [Core] [DBUG] [runners.tool_loop_agent_runner:613]: [AftCompact] RunCtx.messages -> [35] system,user,assistant,tool,assistant,tool,assistant,user,assistant,tool,assistant,tool,tool,tool,assistant,user,assistant,tool,tool,assistant,user,assistant,tool,assistant,tool,assistant,user,assistant,user,assistant,user,assistant,user,assistant,user
[2026-05-20 17:20:18.158] [Core] [DBUG] [sources.openai_source:607]: completion: ChatCompletion(id='resp_09bff553303702fd016a0d7cd0e660819588d3856fa623597d', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content='123', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1779268818, model='gpt-5.5', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=5, prompt_tokens=19974, total_tokens=19979, completion_tokens_details=None, prompt_tokens_details=None))
[2026-05-20 17:20:18.159] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.RUNNING -> AgentState.DONE
[2026-05-20 17:20:18.159] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot_plugin_qzone_tools - on_llm_response
[2026-05-20 17:20:18.159] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMResponseEvent) -> astrbot - record_llm_resp_to_ltm
[2026-05-20 17:20:18.159] [Core] [DBUG] [result_decorate.stage:165]: hook(on_decorating_result) -> astrbot_plugin_AtTool - process_at_tags
[2026-05-20 17:20:18.163] [Core]
[INFO]
[result_decorate.stage:301]: TTS 请求: 123
[2026-05-20 17:20:18.163] [Core] [DBUG] [sources.gsv_selfhosted_source:128]: [GSV TTS] 正在调用语音合成接口,参数:{'ref_audio_path': '/home/xxx/default_audio/ふむ、お主が我輩のご主人か.ogg', 'prompt_text': 'ふむ、お主が我輩のご主人か', 'prompt_lang': 'ja', 'aux_ref_audio_paths': '', 'text_lang': 'auto', 'top_k': '15', 'top_p': '1', 'temperature': '1', 'text_split_method': 'cut3', 'batch_size': '4', 'batch_threshold': '0.75', 'split_bucket': 'true', 'speed_factor': '1', 'fragment_interval': '0.3', 'streaming_mode': 'false', 'seed': '-1', 'parallel_infer': 'true', 'repetition_penalty': '1.35', 'media_type': 'wav', 'text': '123'}
[2026-05-20 17:20:18.163] [Core] [DBUG] [sources.gsv_selfhosted_source:69]: [GSV TTS] 请求地址:http://127.0.0.1:9880/tts,参数:{'ref_audio_path': '/home/xxx/default_audio/ふむ、お主が我輩のご主人か.ogg', 'prompt_text': 'ふむ、お主が我輩のご主人か', 'prompt_lang': 'ja', 'aux_ref_audio_paths': '', 'text_lang': 'auto', 'top_k': '15', 'top_p': '1', 'temperature': '1', 'text_split_method': 'cut3', 'batch_size': '4', 'batch_threshold': '0.75', 'split_bucket': 'true', 'speed_factor': '1', 'fragment_interval': '0.3', 'streaming_mode': 'false', 'seed': '-1', 'parallel_infer': 'true', 'repetition_penalty': '1.35', 'media_type': 'wav', 'text': '123'}
[2026-05-20 17:20:18.987] [Core]
[INFO]
[result_decorate.stage:303]: TTS 结果: /AstrBot/data/temp/gsv_tts_8f6654ce6c5248beb27ca59da1fb03fc.wav
[2026-05-20 17:20:18.987] [Core]
[INFO]
[respond.stage:183]: Prepare to send - ☞♛☜/xxx: [ComponentType.Record] 123 
[2026-05-20 17:20:19.828] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnAfterMessageSentEvent) -> astrbot_plugin_proactive_chat - on_after_message_sent
[2026-05-20 17:20:19.828] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnAfterMessageSentEvent) -> astrbot - after_message_sent
[2026-05-20 17:20:19.838] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • [ ] Yes!

Code of Conduct

pjh456 avatar May 20 '26 09:05 pjh456

此问题已得到解决。

provider 指令会自动创建自定义规则,导致一直指定了一个未在配置中被勾选的模型。

pjh456 avatar May 20 '26 14:05 pjh456