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
File tree
2 files changed
+217
-171
lines changed- sentry_sdk/integrations
- tests/integrations/openai
2 files changed
+217
-171
lines changed
0 commit comments