Apply fix from PR #354 by @tannk4w to properly signal tool_calls finish_reason when model emits tool calls, allowing OpenAI-compatible clients to continue with tool result processing instead of stopping prematurely. Refactored finish_reason logic into computeFinishReason() helper to eliminate duplication and improve maintainability across flush and completion paths. Co-authored-by: tannk4w <tannk@tmi-soft.vn> Thanks to @tannk4w, @trungtq2799, @quanhavn, and @East-rayyy for the thorough review and improvement suggestions on the original PR. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| claude-to-openai.js | ||
| cursor-to-openai.js | ||
| gemini-to-openai.js | ||
| kiro-to-openai.js | ||
| ollama-to-openai.js | ||
| openai-responses.js | ||
| openai-to-antigravity.js | ||
| openai-to-claude.js | ||