openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

fix: add a check to handle empty or newline-only strings before calling `from_json`

Open maesta7 opened this issue 11 months ago • 0 comments

…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.

maesta7 avatar Jan 11 '25 12:01 maesta7