搞定 DeepSeek-V3.1 思考模式!分享 NEWAPI 的参数覆盖设置
DeepSeek-V3.1 的思考 (Thinking/Reasoning) 模式在不同渠道的开启参数不同,直接调用比较麻烦。
研究了一下,通过 NEWAPI 的参数覆盖功能,可以实现无缝切换。我自定义的 DeepSeek-V3.1-Thinking 作为开启思考模式的专用模型,而 DeepSeek-V3.1 则保持默认不思考。
配置代码如下,直接取用即可:
1. OpenRouter 渠道配置
此配置会添加 reasoning 参数,并映射到正确的模型 ID。
{
"operations": [
{
"path": "reasoning",
"mode": "set",
"value": {
"enabled": true
},
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
},
{
"path": "model",
"mode": "set",
"value": "deepseek/deepseek-chat-v3.1:free",
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
}
]
}
2. 阿里百炼渠道配置
此配置会添加 extra_body.enable_thinking 参数,并映射到正确的模型 ID。
{
"operations": [
{
"path": "model",
"mode": "set",
"value": "deepseek-v3.1",
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
},
{
"path": "extra_body.enable_thinking",
"mode": "set",
"value": true,
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
}
]
}
3. 硅基流动/魔搭 渠道配置
{
"operations": [
{
"path": "enable_thinking",
"mode": "set",
"value": true,
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
},
{
"path": "model",
"mode": "set",
"value": "deepseek-ai/DeepSeek-V3.1",
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
}
]
}
4. 火山引擎 渠道配置
{
"operations": [
{
"path": "thinking",
"mode": "set",
"value": {
"type": "enabled"
},
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
},
{
"path": "model",
"mode": "set",
"value": "deepseek-v3-1-250821",
"conditions": [
{
"path": "model",
"mode": "full",
"value": "DeepSeek-V3.1-Thinking"
}
]
}
]
}
设置好后,调用 DeepSeek-V3.1-Thinking 就能自动开启思考模式。希望能帮到有需要的佬友。
18 posts - 9 participants
Read full topic
via LINUX DO - 热门话题 (author: Cai 😈) Read full topic https://linux.do/t/topic/923462 LINUX DO - 热门话题 https://linux.do/t/topic/923462