9router/open-sse/translator/response
decolua 11e6004fcb fix: correct finish_reason for tool calls in OpenAI Responses translator
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
2026-03-28 14:45:07 +07:00
..
claude-to-openai.js refactor(claude-to-openai): simplify usage token calculation and final chunk assembly 2026-03-09 17:18:49 +07:00
cursor-to-openai.js feat(cursor): Add cursor Provider 2026-02-05 11:06:20 +07:00
gemini-to-openai.js fix: strip functionCall/functionResponse id and synthetic thoughtSignature for Vertex AI (closes #388) (#414) 2026-03-27 10:46:47 +07:00
kiro-to-openai.js feat: Update response handling and logging for improved usage tracking 2026-02-03 10:22:43 +07:00
ollama-to-openai.js feat(ollama): Enhance Ollama support by adding new models, updating API format handling, and integrating translation functionality. 2026-03-12 15:24:10 +07:00
openai-responses.js fix: correct finish_reason for tool calls in OpenAI Responses translator 2026-03-28 14:45:07 +07:00
openai-to-antigravity.js feat(antigravity): integrate Antigravity tool with MITM support and update CLI tools 2026-02-08 16:28:13 +07:00
openai-to-claude.js feat: Update response handling and logging for improved usage tracking 2026-02-03 10:22:43 +07:00