网关会掩盖上游上下文长度错误,导致 Claude 代码自动重试/压缩("所有目标提供程序均失败")
作者: gjxwxt创建于 2026年9月15日更新于 2026年9月15日
Problem description
When the upstream LLM returns a context length exceeded error (e.g. 400 from a vLLM/OpenAI-compatible endpoint), the CCR gateway's fallback aggregation replaces it with the generic "All target providers failed.". Claude Code CLI cannot recognize that error, so:
内容来源: musistudio/claude-code-router