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
prompt= response.parse() # get the object that `prompts.get_parameters()` would have returned
326
-
print(prompt)
335
+
completion= response.parse() # get the object that `completion.create()` would have returned
336
+
print(completion.message)
327
337
```
328
338
329
339
These methods return an [`APIResponse`](https://github.com/prompt-foundry/python-sdk/tree/main/src/prompt_foundry_python_sdk/_response.py) object.
@@ -337,7 +347,7 @@ The above interface eagerly reads the full response body when you make the reque
337
347
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.
338
348
339
349
```python
340
-
with client.prompts.with_streaming_response.get_parameters(
350
+
with client.completion.with_streaming_response.create(
0 commit comments