mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-03-02 04:24:11 +08:00
5ab0854b5b
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.
5ab0854b5b
·
2025-10-16 03:54:48 +08:00
History