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
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Changelog
2
2
3
+
## 0.1.0-alpha.6 (2025-06-27)
4
+
5
+
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `do_gradientai.APIConnectionError` is raised.
156
+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `gradientai.APIConnectionError` is raised.
157
157
158
158
When the API returns a non-success status code (that is, 4xx or 5xx
159
-
response), a subclass of `do_gradientai.APIStatusError` is raised, containing `status_code` and `response` properties.
159
+
response), a subclass of `gradientai.APIStatusError` is raised, containing `status_code` and `response` properties.
160
160
161
-
All errors inherit from `do_gradientai.APIError`.
161
+
All errors inherit from `gradientai.APIError`.
162
162
163
163
```python
164
-
importdo_gradientai
165
-
fromdo_gradientaiimport GradientAI
164
+
importgradientai
165
+
fromgradientaiimport GradientAI
166
166
167
167
client = GradientAI()
168
168
169
169
try:
170
170
client.agents.versions.list(
171
171
uuid="REPLACE_ME",
172
172
)
173
-
exceptdo_gradientai.APIConnectionError as e:
173
+
exceptgradientai.APIConnectionError as e:
174
174
print("The server could not be reached")
175
175
print(e.__cause__) # an underlying Exception, likely raised within httpx.
176
-
exceptdo_gradientai.RateLimitError as e:
176
+
exceptgradientai.RateLimitError as e:
177
177
print("A 429 status code was received; we should back off a bit.")
178
-
exceptdo_gradientai.APIStatusError as e:
178
+
exceptgradientai.APIStatusError as e:
179
179
print("Another non-200-range status code was received")
180
180
print(e.status_code)
181
181
print(e.response)
@@ -203,7 +203,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
203
203
You can use the `max_retries` option to configure or disable retry settings:
204
204
205
205
```python
206
-
fromdo_gradientaiimport GradientAI
206
+
fromgradientaiimport GradientAI
207
207
208
208
# Configure the default for all requests:
209
209
client = GradientAI(
@@ -223,7 +223,7 @@ By default requests time out after 1 minute. You can configure this with a `time
223
223
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
224
224
225
225
```python
226
-
fromdo_gradientaiimport GradientAI
226
+
fromgradientaiimport GradientAI
227
227
228
228
# Configure the default for all requests:
229
229
client = GradientAI(
@@ -277,7 +277,7 @@ if response.my_field is None:
277
277
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
@@ -289,9 +289,9 @@ version = response.parse() # get the object that `agents.versions.list()` would
289
289
print(version.agent_versions)
290
290
```
291
291
292
-
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/do_gradientai/_response.py) object.
292
+
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) object.
293
293
294
-
The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/do_gradientai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
294
+
The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
295
295
296
296
#### `.with_streaming_response`
297
297
@@ -355,7 +355,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
379
379
380
380
```py
381
-
fromdo_gradientaiimport GradientAI
381
+
fromgradientaiimport GradientAI
382
382
383
383
with GradientAI() as client:
384
384
# make requests here
@@ -406,8 +406,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
406
406
You can determine the version that is being used at runtime with:
0 commit comments