Skip to content

Commit 40d3032

Browse files
release: 0.1.0-alpha.6 (#12)
* feat(api): manual updates * release: 0.1.0-alpha.6 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent cecff02 commit 40d3032

File tree

270 files changed

+252
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+252
-244
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.5"
2+
".": "0.1.0-alpha.6"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 77
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradientai-e8b3cbc80e18e4f7f277010349f25e1319156704f359911dc464cc21a0d077a6.yml
33
openapi_spec_hash: c773d792724f5647ae25a5ae4ccec208
4-
config_hash: ecf128ea21a8fead9dabb9609c4dbce8
4+
config_hash: 9c2519464cf5de240e34bd89b9f65706

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

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)
6+
7+
### Features
8+
9+
* **api:** manual updates ([04eb1be](https://github.com/digitalocean/gradientai-python/commit/04eb1be35de7db04e1f0d4e1da8719b54a353bb5))
10+
311
## 0.1.0-alpha.5 (2025-06-27)
412

513
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)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ pip install -r requirements-dev.lock
3636

3737
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3838
result in merge conflicts between manual patches and changes from the generator. The generator will never
39-
modify the contents of the `src/do_gradientai/lib/` and `examples/` directories.
39+
modify the contents of the `src/gradientai/lib/` and `examples/` directories.
4040

4141
## Adding and running examples
4242

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The full API of this library can be found in [api.md](api.md).
2525

2626
```python
2727
import os
28-
from do_gradientai import GradientAI
28+
from gradientai import GradientAI
2929

3030
client = GradientAI(
3131
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
@@ -55,7 +55,7 @@ Simply import `AsyncGradientAI` instead of `GradientAI` and use `await` with eac
5555
```python
5656
import os
5757
import asyncio
58-
from do_gradientai import AsyncGradientAI
58+
from gradientai import AsyncGradientAI
5959

6060
client = AsyncGradientAI(
6161
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
@@ -96,8 +96,8 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
9696
```python
9797
import os
9898
import asyncio
99-
from do_gradientai import DefaultAioHttpClient
100-
from do_gradientai import AsyncGradientAI
99+
from gradientai import DefaultAioHttpClient
100+
from gradientai import AsyncGradientAI
101101

102102

103103
async def main() -> None:
@@ -134,7 +134,7 @@ Typed requests and responses provide autocomplete and documentation within your
134134
Nested parameters are dictionaries, typed using `TypedDict`, for example:
135135

136136
```python
137-
from do_gradientai import GradientAI
137+
from gradientai import GradientAI
138138

139139
client = GradientAI()
140140

@@ -153,29 +153,29 @@ print(completion.stream_options)
153153

154154
## Handling errors
155155

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.
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.
157157

158158
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.
160160

161-
All errors inherit from `do_gradientai.APIError`.
161+
All errors inherit from `gradientai.APIError`.
162162

163163
```python
164-
import do_gradientai
165-
from do_gradientai import GradientAI
164+
import gradientai
165+
from gradientai import GradientAI
166166

167167
client = GradientAI()
168168

169169
try:
170170
client.agents.versions.list(
171171
uuid="REPLACE_ME",
172172
)
173-
except do_gradientai.APIConnectionError as e:
173+
except gradientai.APIConnectionError as e:
174174
print("The server could not be reached")
175175
print(e.__cause__) # an underlying Exception, likely raised within httpx.
176-
except do_gradientai.RateLimitError as e:
176+
except gradientai.RateLimitError as e:
177177
print("A 429 status code was received; we should back off a bit.")
178-
except do_gradientai.APIStatusError as e:
178+
except gradientai.APIStatusError as e:
179179
print("Another non-200-range status code was received")
180180
print(e.status_code)
181181
print(e.response)
@@ -203,7 +203,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
203203
You can use the `max_retries` option to configure or disable retry settings:
204204

205205
```python
206-
from do_gradientai import GradientAI
206+
from gradientai import GradientAI
207207

208208
# Configure the default for all requests:
209209
client = GradientAI(
@@ -223,7 +223,7 @@ By default requests time out after 1 minute. You can configure this with a `time
223223
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
224224

225225
```python
226-
from do_gradientai import GradientAI
226+
from gradientai import GradientAI
227227

228228
# Configure the default for all requests:
229229
client = GradientAI(
@@ -277,7 +277,7 @@ if response.my_field is None:
277277
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
278278

279279
```py
280-
from do_gradientai import GradientAI
280+
from gradientai import GradientAI
281281

282282
client = GradientAI()
283283
response = client.agents.versions.with_raw_response.list(
@@ -289,9 +289,9 @@ version = response.parse() # get the object that `agents.versions.list()` would
289289
print(version.agent_versions)
290290
```
291291

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.
293293

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.
295295

296296
#### `.with_streaming_response`
297297

@@ -355,7 +355,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
355355

356356
```python
357357
import httpx
358-
from do_gradientai import GradientAI, DefaultHttpxClient
358+
from gradientai import GradientAI, DefaultHttpxClient
359359

360360
client = GradientAI(
361361
# Or use the `GRADIENT_AI_BASE_URL` env var
@@ -378,7 +378,7 @@ client.with_options(http_client=DefaultHttpxClient(...))
378378
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.
379379

380380
```py
381-
from do_gradientai import GradientAI
381+
from gradientai import GradientAI
382382

383383
with GradientAI() as client:
384384
# make requests here
@@ -406,8 +406,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
406406
You can determine the version that is being used at runtime with:
407407

408408
```py
409-
import do_gradientai
410-
print(do_gradientai.__version__)
409+
import gradientai
410+
print(gradientai.__version__)
411411
```
412412

413413
## Requirements

0 commit comments

Comments
 (0)