发布

  • feat(translator): ensure correct finish_reason handling for all response chunks

    frostbyte_neo 发布于 2026-06-10 16:17:45 +00:00 | 650 次提交 在此版本后已推送到 main

    • Added tests (TestCliFinishReasonOnlyOnFinalChunk, TestGeminiFinishReasonOnlyOnFinalChunk) to validate correct finish_reason and native_finish_reason assignment.
    • Refactored Gemini and CLI translators to track SawToolCall and UpstreamFinishReason for accurate final-chunk determination.
    • Improved response parsing logic to align with upstream metadata and provide consistent reasoning on chunk outputs.
    下载附件