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
332
-
print(prompt)
341
+
completion= response.parse() # get the object that `completion.create()` would have returned
342
+
print(completion.message)
333
343
```
334
344
335
345
These methods return an [`APIResponse`](https://github.com/prompt-foundry/python-sdk/tree/main/src/prompt_foundry_python_sdk/_response.py) object.
@@ -343,7 +353,7 @@ The above interface eagerly reads the full response body when you make the reque
343
353
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.
344
354
345
355
```python
346
-
with client.prompts.with_streaming_response.get_parameters(
356
+
with client.completion.with_streaming_response.create(
0 commit comments