升级到v1.3.0:新增auto推理模式和完善推理级别文档

主要功能更新:
- 新增auto推理级别,完全遵循客户端原始请求参数
- 支持五档推理级别:auto/off/low/medium/high
- auto模式零干预:不修改推理字段和anthropic-beta头
- 除gpt-5-codex外,所有模型默认设为auto模式

文档完善:
- 更新核心功能说明,突出智能推理级别控制
- 新增auto推理模式详细说明和使用场景
- 添加推理级别对比表格和配置示例
- 增强FAQ部分,分场景解答推理相关问题
- 提供OpenAI和Anthropic模型字段对应关系

技术实现:
- 更新getModelReasoning函数支持auto选项
- 完善所有transformer的auto模式处理逻辑
- 优化routes.js中直接转发端点的auto支持
- 确保auto模式下头信息和请求体完全透传
This commit is contained in:
1e0n
2025-10-09 13:32:50 +08:00
parent 036198cebb
commit 4a8d7986dd
7 changed files with 110 additions and 34 deletions

View File

@@ -19,25 +19,25 @@
"name": "Opus 4.1",
"id": "claude-opus-4-1-20250805",
"type": "anthropic",
"reasoning": "off"
"reasoning": "auto"
},
{
"name": "Sonnet 4",
"id": "claude-sonnet-4-20250514",
"type": "anthropic",
"reasoning": "medium"
"reasoning": "auto"
},
{
"name": "Sonnet 4.5",
"id": "claude-sonnet-4-5-20250929",
"type": "anthropic",
"reasoning": "high"
"reasoning": "auto"
},
{
"name": "GPT-5",
"id": "gpt-5-2025-08-07",
"type": "openai",
"reasoning": "high"
"reasoning": "auto"
},
{
"name": "GPT-5-Codex",