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
* feat(api): update via SDK Studio
* chore(internal): codegen related update
* codegen metadata
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* codegen metadata
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* feat(api): update via SDK Studio
* codegen metadata
* codegen metadata
* feat(api): define api links and meta as shared models
* feat(api): update OpenAI spec and add endpoint/smodels
* feat: use inference key for chat.completions.create()
* fix(ci): release-doctor — report correct token name
* Update src/do_gradientai/resources/chat/completions.py
Co-authored-by: Robert Craigie <robert@craigie.dev>
* release: 0.1.0-alpha.5
---------
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Samuel El-Borai <sam@elborai.me>
Co-authored-by: Robert Craigie <robert@craigie.dev>
Co-authored-by: paperspace-philip <58186049+paperspace-philip@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,36 @@
1
1
# Changelog
2
2
3
+
## 0.1.0-alpha.5 (2025-06-27)
4
+
5
+
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)
6
+
7
+
### Features
8
+
9
+
***api:** define api links and meta as shared models ([8d87001](https://github.com/digitalocean/gradientai-python/commit/8d87001b51de17dd1a36419c0e926cef119f20b8))
10
+
***api:** update OpenAI spec and add endpoint/smodels ([e92c54b](https://github.com/digitalocean/gradientai-python/commit/e92c54b05f1025b6173945524724143fdafc7728))
11
+
***api:** update via SDK Studio ([1ae76f7](https://github.com/digitalocean/gradientai-python/commit/1ae76f78ce9e74f8fd555e3497299127e9aa6889))
12
+
***api:** update via SDK Studio ([98424f4](https://github.com/digitalocean/gradientai-python/commit/98424f4a2c7e00138fb5eecf94ca72e2ffcc1212))
13
+
***api:** update via SDK Studio ([299fd1b](https://github.com/digitalocean/gradientai-python/commit/299fd1b29b42f6f2581150e52dcf65fc73270862))
14
+
***api:** update via SDK Studio ([9a45427](https://github.com/digitalocean/gradientai-python/commit/9a45427678644c34afe9792a2561f394718e64ff))
15
+
***api:** update via SDK Studio ([abe573f](https://github.com/digitalocean/gradientai-python/commit/abe573fcc2233c7d71f0a925eea8fa9dd4d0fb91))
16
+
***api:** update via SDK Studio ([e5ce590](https://github.com/digitalocean/gradientai-python/commit/e5ce59057792968892317215078ac2c11e811812))
17
+
***api:** update via SDK Studio ([1daa3f5](https://github.com/digitalocean/gradientai-python/commit/1daa3f55a49b5411d1b378fce30aea3ccbccb6d7))
18
+
***api:** update via SDK Studio ([1c702b3](https://github.com/digitalocean/gradientai-python/commit/1c702b340e4fd723393c0f02df2a87d03ca8c9bb))
19
+
***api:** update via SDK Studio ([891d6b3](https://github.com/digitalocean/gradientai-python/commit/891d6b32e5bdb07d23abf898cec17a60ee64f99d))
20
+
***api:** update via SDK Studio ([dcbe442](https://github.com/digitalocean/gradientai-python/commit/dcbe442efc67554e60b3b28360a4d9f7dcbb313a))
21
+
* use inference key for chat.completions.create() ([5d38e2e](https://github.com/digitalocean/gradientai-python/commit/5d38e2eb8604a0a4065d146ba71aa4a5a0e93d85))
22
+
23
+
24
+
### Bug Fixes
25
+
26
+
***ci:** release-doctor — report correct token name ([4d2b3dc](https://github.com/digitalocean/gradientai-python/commit/4d2b3dcefdefc3830d631c5ac27b58778a299983))
27
+
28
+
29
+
### Chores
30
+
31
+
* clean up pyproject ([78637e9](https://github.com/digitalocean/gradientai-python/commit/78637e99816d459c27b4f2fd2f6d79c8d32ecfbe))
32
+
***internal:** codegen related update ([58d7319](https://github.com/digitalocean/gradientai-python/commit/58d7319ce68c639c2151a3e96a5d522ec06ff96f))
33
+
3
34
## 0.1.0-alpha.4 (2025-06-25)
4
35
5
36
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/digitalocean/gradientai-python/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
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.
156
+
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.
132
157
133
158
When the API returns a non-success status code (that is, 4xx or 5xx
134
-
response), a subclass of `gradientai.APIStatusError` is raised, containing `status_code` and `response` properties.
159
+
response), a subclass of `do_gradientai.APIStatusError` is raised, containing `status_code` and `response` properties.
135
160
136
-
All errors inherit from `gradientai.APIError`.
161
+
All errors inherit from `do_gradientai.APIError`.
137
162
138
163
```python
139
-
importgradientai
140
-
fromgradientaiimport GradientAI
164
+
importdo_gradientai
165
+
fromdo_gradientaiimport GradientAI
141
166
142
167
client = GradientAI()
143
168
144
169
try:
145
170
client.agents.versions.list(
146
171
uuid="REPLACE_ME",
147
172
)
148
-
exceptgradientai.APIConnectionError as e:
173
+
exceptdo_gradientai.APIConnectionError as e:
149
174
print("The server could not be reached")
150
175
print(e.__cause__) # an underlying Exception, likely raised within httpx.
151
-
exceptgradientai.RateLimitError as e:
176
+
exceptdo_gradientai.RateLimitError as e:
152
177
print("A 429 status code was received; we should back off a bit.")
153
-
exceptgradientai.APIStatusError as e:
178
+
exceptdo_gradientai.APIStatusError as e:
154
179
print("Another non-200-range status code was received")
155
180
print(e.status_code)
156
181
print(e.response)
@@ -178,7 +203,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
178
203
You can use the `max_retries` option to configure or disable retry settings:
179
204
180
205
```python
181
-
fromgradientaiimport GradientAI
206
+
fromdo_gradientaiimport GradientAI
182
207
183
208
# Configure the default for all requests:
184
209
client = GradientAI(
@@ -198,7 +223,7 @@ By default requests time out after 1 minute. You can configure this with a `time
198
223
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
199
224
200
225
```python
201
-
fromgradientaiimport GradientAI
226
+
fromdo_gradientaiimport GradientAI
202
227
203
228
# Configure the default for all requests:
204
229
client = GradientAI(
@@ -252,7 +277,7 @@ if response.my_field is None:
252
277
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
@@ -264,9 +289,9 @@ version = response.parse() # get the object that `agents.versions.list()` would
264
289
print(version.agent_versions)
265
290
```
266
291
267
-
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) object.
292
+
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/do_gradientai/_response.py) object.
268
293
269
-
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.
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.
270
295
271
296
#### `.with_streaming_response`
272
297
@@ -330,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.
354
379
355
380
```py
356
-
fromgradientaiimport GradientAI
381
+
fromdo_gradientaiimport GradientAI
357
382
358
383
with GradientAI() as client:
359
384
# make requests here
@@ -381,8 +406,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
381
406
You can determine the version that is being used at runtime with:
0 commit comments