openai-python
openai-python copied to clipboard
fix: add a check to handle empty or newline-only strings before calling `from_json`
…ng from_json
- [ ] I understand that this repository is auto-generated and my pull request may not be merged
Changes being requested
- add filter logic to ensure chunk streaming work properly.
Additional context & links
- I notice that in some case, when messages stack around 2 - 3 conversation turn, it will throw 'EOF error parsing', so I launch quick check on client lib, and found that, in some use case, server will send empty string with '\n', so it make jiter parsing function error.