feat(models): support reasoning_effort config for DeepSeek V4

This commit is contained in:
zhayujie
2026-05-15 18:17:35 +08:00
parent fe871aad77
commit f5479c56af
5 changed files with 73 additions and 19 deletions

View File

@@ -214,24 +214,10 @@ available_setting = {
"agent_max_context_turns": 20, # Agent模式下最大上下文记忆轮次
"agent_max_steps": 20, # Agent模式下单次运行最大决策步数
"enable_thinking": False, # Enable deep-thinking mode for thinking-capable models
"reasoning_effort": "high", # Reasoning depth under thinking mode: "high" or "max"
"knowledge": True, # 是否开启知识库功能
# Per-skill runtime config. Nested keys are flattened to env vars at startup
# using the rule: skill[<name>][<key>] -> SKILL_<NAME>_<KEY>
# (e.g. skill["image-generation"].model -> SKILL_IMAGE_GENERATION_MODEL).
"skill": {},
# MCP (Model Context Protocol) server list.
# Each entry describes one MCP server to connect at startup.
# Supported types:
# stdio — launch a local process and communicate over stdin/stdout
# sse — connect to a remote server via HTTP + Server-Sent Events
#
# Example:
# "mcp_servers": [
# {"name": "filesystem", "type": "stdio", "command": "npx",
# "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]},
# {"name": "my-api", "type": "sse", "url": "http://localhost:8000/sse"}
# ]
"mcp_servers": [],
"skill": {}, # Per-skill runtime config; nested keys flatten to SKILL_<NAME>_<KEY> env vars at startup
"mcp_servers": [], # MCP server list; each entry supports type "stdio" (local process) or "sse" (remote URL)
}