Commit 678e9a7
authored
ref(openai): Only handle streamed results when applicable (#5553)
Remove iterator patches from shared output-handling code, and only apply them in the dedicated functions for patching streamed responses. Only keep code relevant to the Completions and Responses APIs in the respective iterator wrappers.
Add `stream=True` to tests in which a streamed response is returned.1 parent 087ec4d commit 678e9a7
2 files changed
Lines changed: 217 additions & 171 deletions
0 commit comments