This commit is contained in:
Sebastian Husch Lee 2025-03-18 10:12:26 +01:00 committed by GitHub
parent c06a5434fc
commit 783b74bd21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Fixed issue with MistralChatGenerator not returning a `finish_reason` when using streaming. Fixed by adjusting how we look for the `finish_reason` when processing streaming chunks. Now, the last non-None `finish_reason` is used to handle differences between OpenAI and Mistral.
enhancements:
- |
- Refactored the processing of streaming chunks from OpenAI to simplify logic.
- Added tests to ensure expected behavior when handling streaming chunks when using include_usage=True.