常见问题 | 可能的原因 | |
多轮工具调用效果随轮数增加而下降 | 思考内容未回传,导致每一轮工具返回后丢失思考内容 | 回传思考内容 |
相同模型、相同 Prompt 在不同实现下任务通过率差异明显 | 参数配置未按推荐值;上下文回传不完整 | 配置关键参数 回传思考内容 |
回答被截断、工具参数 JSON 不完整、finish_reason / stop_reason 为 length | max_tokens 未显式传入或值过小 | 调整输出长度参数 |
Prompt Cache 命中率异常偏低 | System Prompt 或工具定义在轮次间发生变化;Session 内改动参数 | 遵循缓存命中原则 |
维度 | Chat API(OpenAI 兼容) /api/v3/chat/completions | Responses API /api/v3/responses | Anthropic 兼容 API /api/compatible/v1/messages |
支持回传思考内容原文(明文)的模型 | Doubao 模型:doubao-seed-2-0-pro-260215、doubao-seed-2-0-lite-260215、doubao-seed-2-0-mini-260215 开源模型:deepseek-v4-pro-260425、deepseek-v4-flash-ga-260731、deepseek-v4-1-flash-260910、glm-5-2-260617 | | |
回传思考内容原文对应的字段 需要将思考内容原文拼回下一轮请求 | choices[].message.reasoning_content |
| content[thinking].thinking |
支持回传思考内容加密原文的模型 | Doubao 模型:doubao-seed-evolving、doubao-seed-2-1-pro-260915、doubao-seed-2-1-lite-260915、doubao-seed-2-1-pro-260628、doubao-seed-2-1-turbo-260628、doubao-seed-2-0-lite-260428 注意
| | |
回传思考内容加密原文对应的字段 需要将思考内容加密原文拼回下一轮请求 | choices[].message.encrypted_content |
| content[thinking].signature |
是否默认返回思考内容加密字段 | 是 | 是 | 是 |
回传思考内容明文摘要对应的字段 不能只回传思考内容明文摘要,会导致模型效果下降。 | choices[].message.reasoning_content | output[reasoning].summary[].text | content[thinking].thinking |
配置输出长度参数 | max_tokens / max_completion_tokens 推荐:必须显式传,Agent 场景建议 ≥ 128000 | max_output_tokens 推荐:必须显式传,Agent 场景建议 ≥ 128000 | max_tokens 推荐:必须显式传,Agent 场景建议 ≥ 128000 |
配置 thinking 参数 | {"type": "enabled"} 推荐:Agent 场景下显式开启,不要使用 auto | {"type": "enabled"} 推荐:Agent 场景下显式开启,不要使用 auto | {"type": "enabled"} 推荐:Agent 场景下显式开启,不要使用 auto |
配置 reasoning_effort 参数 | "reasoning_effort": "high" 推荐:Agent 场景建议 high 或以上 | "reasoning": {"effort": "high"} 推荐:Agent 场景建议 high 或以上 | "output_config": {"effort": "high"} 推荐:Agent 场景建议 high 或以上 |
配置 temperature / top_p 参数 | 推荐 temperature=1、top_p=0.95 | 推荐 temperature=1、top_p=0.95 | 推荐 temperature=1、top_p=0.95 |