You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
completion = response.parse() # get the object that `agents.chat.completions.create()` would have returned
364
+
completion = response.parse() # get the object that `chat.completions.create()` would have returned
365
365
print(completion.choices)
366
366
```
367
367
@@ -376,7 +376,7 @@ The above interface eagerly reads the full response body when you make the reque
376
376
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
377
377
378
378
```python
379
-
with client.agents.chat.completions.with_streaming_response.create(
379
+
with client.chat.completions.with_streaming_response.create(
0 commit comments