Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,13 @@
"timeout": 120,
"proxy": "",
"custom_headers": {},
"responses_web_search": False,
"responses_web_search_context_size": "medium",
"responses_web_search_allowed_domains": [],
"responses_file_search_vector_store_ids": [],
"responses_code_interpreter": False,
"responses_image_generation": False,
"responses_tool_choice": "auto",
},
"Google Gemini": {
"id": "google_gemini",
Expand Down Expand Up @@ -1304,6 +1311,13 @@
"timeout": 120,
"proxy": "",
"custom_headers": {},
"responses_web_search": False,
"responses_web_search_context_size": "medium",
"responses_web_search_allowed_domains": [],
"responses_file_search_vector_store_ids": [],
"responses_code_interpreter": False,
"responses_image_generation": False,
"responses_tool_choice": "auto",
},
"DeepSeek": {
"id": "deepseek",
Expand All @@ -1328,6 +1342,13 @@
"timeout": 120,
"proxy": "",
"custom_headers": {},
"responses_web_search": False,
"responses_web_search_context_size": "medium",
"responses_web_search_allowed_domains": [],
"responses_file_search_vector_store_ids": [],
"responses_code_interpreter": False,
"responses_image_generation": False,
"responses_tool_choice": "auto",
},
"Zhipu": {
"id": "zhipu",
Expand Down Expand Up @@ -2026,6 +2047,58 @@
"type": "xai_chat_completion",
},
},
"responses_web_search": {
"description": "启用 Responses 原生网页搜索",
"type": "bool",
"hint": "通过 OpenAI Responses API 的 web_search 工具联网检索。仅对 openai_responses 提供商生效。",
"condition": {"type": "openai_responses"},
},
"responses_web_search_context_size": {
"description": "网页搜索上下文大小",
"type": "string",
"options": ["low", "medium", "high"],
"hint": "控制网页搜索为结果分配的上下文量。",
"condition": {
"type": "openai_responses",
"responses_web_search": True,
},
},
"responses_web_search_allowed_domains": {
"description": "网页搜索允许的域名",
"type": "list",
"items": {"type": "string"},
"hint": "留空则不限制;填写域名后,网页搜索仅使用这些域名及其子域名。",
"condition": {
"type": "openai_responses",
"responses_web_search": True,
},
},
"responses_file_search_vector_store_ids": {
"description": "文件搜索 Vector Store IDs",
"type": "list",
"items": {"type": "string"},
"hint": "填写 OpenAI Vector Store ID 以启用 file_search;留空则不启用。",
"condition": {"type": "openai_responses"},
},
"responses_code_interpreter": {
"description": "启用 Responses 原生代码解释器",
"type": "bool",
"hint": "通过 OpenAI 托管容器执行 Python 代码。",
"condition": {"type": "openai_responses"},
},
"responses_image_generation": {
"description": "启用 Responses 原生图像生成",
"type": "bool",
"hint": "允许支持的模型使用 image_generation 工具生成图片。",
"condition": {"type": "openai_responses"},
},
"responses_tool_choice": {
"description": "Responses 工具选择策略",
"type": "string",
"options": ["auto", "required", "none"],
"hint": "控制模型自动选择工具、强制调用工具或禁用所有工具。",
"condition": {"type": "openai_responses"},
},
"rerank_api_base": {
"description": "重排序模型 API Base URL",
"type": "string",
Expand Down
Loading