• fix(claude): track message_start event in streaming response
    Some checks failed
    docker-image / docker (push) Has been cancelled
    goreleaser / goreleaser (push) Has been cancelled

    airkjw released this 2025-10-15 19:54:48 +00:00 | 1614 commits to main since this release

    Add a MessageStarted flag to ConvertOpenAIResponseToAnthropicParams to ensure the message_start event is emitted only once during streaming.
    Refactor response handling to detect streaming mode via the stream field instead of the object type, simplifying the branching logic.
    Update the streaming conversion to set MessageStarted after sending the message_start event, preventing duplicate starts.
    These changes improve correctness of streaming response handling for Claude integration.

    Downloads