Prerequisites
Description
When calling a model with OpenAI chat completions API, the response is missing {finish_reason: stop} even if it is set in upstream, causing client agents to enter an infinite loop.
Steps to reproduce
Call a model with chat completions API.
Expected behavior
finish_reason should be forwarded
Actual behavior
finish_reason is not forwarded
Affected area(s)
Transports (HTTP)
Version
v1.4.9
Environment
Relevant logs/output
Regression?
No response
Severity
Medium (some functionality impaired)
Prerequisites
Description
When calling a model with OpenAI chat completions API, the response is missing {finish_reason: stop} even if it is set in upstream, causing client agents to enter an infinite loop.
Steps to reproduce
Call a model with chat completions API.
Expected behavior
finish_reason should be forwarded
Actual behavior
finish_reason is not forwarded
Affected area(s)
Transports (HTTP)
Version
v1.4.9
Environment
Relevant logs/output
Regression?
No response
Severity
Medium (some functionality impaired)