convertOpenAIToolChoice mapped {type:"function"} verbatim and cloakClaudeTools
left tool_choice.name unsuffixed, both rejected by Claude on the cc/ path.
Map forced-function to {type:"tool",name}, allowlist Claude-valid types, and
suffix tool_choice.name when it targets a renamed client tool.
Fixes #1592
Co-authored-by: Cursor <cursoragent@cursor.com>
|
||
|---|---|---|
| .. | ||
| antigravity-to-openai.js | ||
| claude-to-openai.js | ||
| gemini-to-openai.js | ||
| openai-responses.js | ||
| openai-to-claude.js | ||
| openai-to-commandcode.js | ||
| openai-to-cursor.js | ||
| openai-to-gemini.js | ||
| openai-to-kiro.js | ||
| openai-to-kiro.old.js | ||
| openai-to-ollama.js | ||
| openai-to-vertex.js | ||