Skip to content

Commit cf29d93

Browse files
committed
chore: reorganize provider settings for quoted message parsing
1 parent ac44d1f commit cf29d93

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

astrbot/core/config/default.py

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,46 +3152,6 @@ class ChatProviderTemplate(TypedDict):
31523152
"provider_settings.agent_runner_type": "local",
31533153
},
31543154
},
3155-
"provider_settings.max_quoted_fallback_images": {
3156-
"description": "引用图片回退解析上限",
3157-
"type": "int",
3158-
"hint": "引用/转发消息回退解析图片时的最大注入数量,超出会截断。",
3159-
"condition": {
3160-
"provider_settings.agent_runner_type": "local",
3161-
},
3162-
},
3163-
"provider_settings.quoted_message_parser.max_component_chain_depth": {
3164-
"description": "引用解析组件链深度",
3165-
"type": "int",
3166-
"hint": "解析 Reply 组件链时允许的最大递归深度。",
3167-
"condition": {
3168-
"provider_settings.agent_runner_type": "local",
3169-
},
3170-
},
3171-
"provider_settings.quoted_message_parser.max_forward_node_depth": {
3172-
"description": "引用解析转发节点深度",
3173-
"type": "int",
3174-
"hint": "解析合并转发节点时允许的最大递归深度。",
3175-
"condition": {
3176-
"provider_settings.agent_runner_type": "local",
3177-
},
3178-
},
3179-
"provider_settings.quoted_message_parser.max_forward_fetch": {
3180-
"description": "引用解析转发拉取上限",
3181-
"type": "int",
3182-
"hint": "递归拉取 get_forward_msg 的最大次数。",
3183-
"condition": {
3184-
"provider_settings.agent_runner_type": "local",
3185-
},
3186-
},
3187-
"provider_settings.quoted_message_parser.warn_on_action_failure": {
3188-
"description": "引用解析 action 失败告警",
3189-
"type": "bool",
3190-
"hint": "开启后,get_msg/get_forward_msg 全部尝试失败时输出 warning 日志。",
3191-
"condition": {
3192-
"provider_settings.agent_runner_type": "local",
3193-
},
3194-
},
31953155
"provider_settings.max_agent_step": {
31963156
"description": "工具调用轮数上限",
31973157
"type": "int",
@@ -3235,6 +3195,46 @@ class ChatProviderTemplate(TypedDict):
32353195
"type": "bool",
32363196
"hint": "/provider 命令列出模型时是否并发检测连通性。开启后会主动调用模型测试连通性,可能产生额外 token 消耗。",
32373197
},
3198+
"provider_settings.max_quoted_fallback_images": {
3199+
"description": "引用图片回退解析上限",
3200+
"type": "int",
3201+
"hint": "引用/转发消息回退解析图片时的最大注入数量,超出会截断。",
3202+
"condition": {
3203+
"provider_settings.agent_runner_type": "local",
3204+
},
3205+
},
3206+
"provider_settings.quoted_message_parser.max_component_chain_depth": {
3207+
"description": "引用解析组件链深度",
3208+
"type": "int",
3209+
"hint": "解析 Reply 组件链时允许的最大递归深度。",
3210+
"condition": {
3211+
"provider_settings.agent_runner_type": "local",
3212+
},
3213+
},
3214+
"provider_settings.quoted_message_parser.max_forward_node_depth": {
3215+
"description": "引用解析转发节点深度",
3216+
"type": "int",
3217+
"hint": "解析合并转发节点时允许的最大递归深度。",
3218+
"condition": {
3219+
"provider_settings.agent_runner_type": "local",
3220+
},
3221+
},
3222+
"provider_settings.quoted_message_parser.max_forward_fetch": {
3223+
"description": "引用解析转发拉取上限",
3224+
"type": "int",
3225+
"hint": "递归拉取 get_forward_msg 的最大次数。",
3226+
"condition": {
3227+
"provider_settings.agent_runner_type": "local",
3228+
},
3229+
},
3230+
"provider_settings.quoted_message_parser.warn_on_action_failure": {
3231+
"description": "引用解析 action 失败告警",
3232+
"type": "bool",
3233+
"hint": "开启后,get_msg/get_forward_msg 全部尝试失败时输出 warning 日志。",
3234+
"condition": {
3235+
"provider_settings.agent_runner_type": "local",
3236+
},
3237+
},
32383238
},
32393239
"condition": {
32403240
"provider_settings.enable": True,

0 commit comments

Comments
 (0)