-
fix(claude): track message_start event in streaming response
发布于
2025-10-15 19:54:48 +00:00 Add a
MessageStartedflag toConvertOpenAIResponseToAnthropicParamsto ensure themessage_startevent is emitted only once during streaming.
Refactor response handling to detect streaming mode via thestreamfield instead of theobjecttype, simplifying the branching logic.
Update the streaming conversion to setMessageStartedafter sending themessage_startevent, preventing duplicate starts.
These changes improve correctness of streaming response handling for Claude integration.下载附件