Commit dbc110b
committed
test: add streaming coverage for OpenAI chat completions provider
Cover the stream() method's inner _produce() function which was
previously untested. Tests exercise text streaming, tool call
streaming, text-then-tool transitions, kwargs building (system
prompt, tools, on_response/on_payload hooks), abort signal
handling, error paths (Exception and BaseException), response ID
capture, empty-choices skipping, finish_reason mapping, and the
no-finish-reason fallback. Coverage goes from 29% to 100%.1 parent 59012cc commit dbc110b
1 file changed
Lines changed: 789 additions & 0 deletions
0 commit comments