jcmourey

Results 2 issues of jcmourey

**Describe the bug** When using a JSON function, a JSON Decoding error is sometimes triggered. The error happens because of unescaped double-quotes occurring inside a JSON string value. **To Reproduce**...

Often receiving partial chunks of ChatResult from an OpenAI streaming session, which causes a DecodingError inside this package. Example of data received by StreamingSession.urlSession: data: {"id":"chatcmpl-7oBwbf0NG9vi74Z4mt3XasGhhdAVl","object":"chat.completion.chunk","created":1692196669,"model":"gpt-3.5-turbo-0613","choices":[{"index":0,"delta":{"function_call":{"arguments":" che"}},"finish_reason":null}]} data: {"id":"chatcmpl-7oBwbf0NG9vi74Z4mt3XasGhhdAVl","object":"chat.completion.chunk","created":1692196669,"model":"gpt-3.5-turbo-0613","choices":[{"index":0,"delta":{"function_call":{"arguments":"et"}},"finish_reason":null}]} data:...