You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix streaming data parsing in OpenAI::HTTP's to_json_stream
Problem:
The to_json_stream method failed to handle JSON objects split across multiple data packets from the Azure AI service, leading to JSON parsing errors and incomplete/missing data.
Solution:
Implemented a buffering mechanism within to_json_stream to accumulate data until a complete JSON object is formed. This ensures proper parsing and data integrity, regardless of how the data packets are received.
0 commit comments