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
dataset = response.parse() # get the object that `datasets.create()` would have returned
269
-
print(dataset.id)
281
+
dataset = response.parse() # get the object that `datasets.generate_dataset()` would have returned
282
+
print(dataset)
270
283
```
271
284
272
285
These methods return an [`APIResponse`](https://github.com/stainless-sdks/lemma-python/tree/main/src/lemma/_response.py) object.
@@ -280,8 +293,10 @@ The above interface eagerly reads the full response body when you make the reque
280
293
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.
281
294
282
295
```python
283
-
with client.datasets.with_streaming_response.create(
284
-
name="name",
296
+
with client.datasets.with_streaming_response.generate_dataset(
0 commit comments