Qwen Code 0.22.3 中的一个错误导致在与 llama.cpp 服务器交互时出现 API 错误,原因是其内置工具模式中的字符串 maxLength 限制过大。这些过大的限制阻止了 llama.cpp 成功编译工具调用所需的语法,从而在任何模型生成发生之前导致 400 错误。通过在 Qwen Code 设置中将 `tools.eager` 设置为空列表,可以暂时解决此问题,这会将工具模式处理推迟到实际使用时。 AI
影响 此错误突显了 LLM 客户端与本地推理服务器之间潜在的集成问题,需要仔细管理工具使用的模式。
排序理由 该条目描述了特定版本软件工具 (Qwen Code) 中的一个错误,该错误会影响其与另一个工具 (llama.cpp) 的集成,并提供了一个解决方法。
- API Error: 400 Failed to initialize samplers: failed to parse grammar
- Gemma
- JSON
- llama.cpp
- loop_wakeup
- Qwen Code
- Qwen Code 0.22.3
- ~/.qwen/settings.json
- report_findings
- schema
AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →