chat_via_responses_test.go
4.66 KB
-
fix(openai): harden Chat-to-Responses compatibility (#5772) · 3a506f50
Add a shared Responses-to-Chat stream state machine and use it from the OpenAI relay path. Preserve assistant text alongside tool calls, bind tool argument deltas by output_index, map incomplete finish reasons, support reasoning/custom tool events, and buffer upstream SSE for non-stream Chat clients. Add deterministic service tests and relay SSE tests for the conversion path. Related to #5745.
Calcium-Ion committed