Cengizhan
|
f763d4ffed
|
fix: resolve GitHub Copilot 400 error for Claude models in Cursor IDE (#220)
- github.js: add sanitizeMessages() to convert unsupported content types
(tool_use, tool_result, thinking) to plain text before sending to
GitHub /chat/completions endpoint
- openai-responses.js: skip pushing message blocks with empty content
(e.g. assistant messages that only contain tool_calls)
- providerModels.js: revert targetFormat changes (not needed with sanitize fix)
Fixes: https://github.com/decolua/9router/issues/219
|
2026-03-01 15:38:14 +07:00 |
|