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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# Changelog
2
2
3
+
## 0.1.0-alpha.10 (2025-06-28)
4
+
5
+
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
version= response.parse() # get the object that `agents.versions.list()` would have returned
319
-
print(version.agent_versions)
361
+
completion= response.parse() # get the object that `agents.chat.completions.create()` would have returned
362
+
print(completion.choices)
320
363
```
321
364
322
365
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) object.
@@ -330,8 +373,14 @@ The above interface eagerly reads the full response body when you make the reque
330
373
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.
331
374
332
375
```python
333
-
with client.agents.versions.with_streaming_response.list(
334
-
uuid="REPLACE_ME",
376
+
with client.agents.chat.completions.with_streaming_response.create(
0 commit comments