Skip to content

Commit ed595b0

Browse files
chore: update SDK settings
1 parent cac54a8 commit ed595b0

31 files changed

+108
-147
lines changed

.github/workflows/create-releases.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/publish-pypi.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to PyPI in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/digitalocean/gradientai-python/actions/workflows/publish-pypi.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/digitalocean/genai-python/actions/workflows/publish-pypi.yml
34
name: Publish PyPI
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'digitalocean/gradientai-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'digitalocean/genai-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
1515
- uses: actions/checkout@v4
@@ -18,5 +18,4 @@ jobs:
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
21-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2221
PYPI_TOKEN: ${{ secrets.GRADIENT_AI_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 60
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fdigitalocean-genai-sdk-6e449984986e066baea73af5c2726811e74a284f0d68d49926ec5c7821c7ed31.yml
33
openapi_spec_hash: 78f43f68f46df0d81891ae2ff66bf3a0
4-
config_hash: 69dc66269416b2e01e8852b5a6788b97
4+
config_hash: 53eac5170a4d8967367b33767544a858

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://git@github.com/digitalocean/gradientai-python.git
65+
$ pip install git+ssh://git@github.com/digitalocean/genai-python.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120120

121121
### Publish with a GitHub workflow
122122

123-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/digitalocean/gradientai-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/digitalocean/genai-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124124

125125
### Publish manually
126126

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ version = response.parse() # get the object that `agents.versions.list()` would
235235
print(version.agent_versions)
236236
```
237237

238-
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) object.
238+
These methods return an [`APIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/gradientai/_response.py) object.
239239

240-
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.
240+
The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/genai-python/tree/main/src/gradientai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
241241

242242
#### `.with_streaming_response`
243243

@@ -343,7 +343,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
343343

344344
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
345345

346-
We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/gradientai-python/issues) with questions, bugs, or suggestions.
346+
We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/genai-python/issues) with questions, bugs, or suggestions.
347347

348348
### Determining the installed version
349349

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${STAINLESS_API_KEY}" ]; then
6-
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7-
fi
8-
95
if [ -z "${PYPI_TOKEN}" ]; then
106
errors+=("The GRADIENT_AI_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
117
fi

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ classifiers = [
3434
]
3535

3636
[project.urls]
37-
Homepage = "https://github.com/digitalocean/gradientai-python"
38-
Repository = "https://github.com/digitalocean/gradientai-python"
37+
Homepage = "https://github.com/digitalocean/genai-python"
38+
Repository = "https://github.com/digitalocean/genai-python"
3939

4040

4141
[tool.rye]
@@ -122,7 +122,7 @@ path = "README.md"
122122
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
123123
# replace relative links with absolute links
124124
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
125-
replacement = '[\1](https://github.com/digitalocean/gradientai-python/tree/main/\g<2>)'
125+
replacement = '[\1](https://github.com/digitalocean/genai-python/tree/main/\g<2>)'
126126

127127
[tool.pytest.ini_options]
128128
testpaths = ["tests"]

src/gradientai/resources/agents/agents.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def with_raw_response(self) -> AgentsResourceWithRawResponse:
104104
This property can be used as a prefix for any HTTP method call to return
105105
the raw response object instead of the parsed content.
106106
107-
For more information, see https://www.github.com/digitalocean/gradientai-python#accessing-raw-response-data-eg-headers
107+
For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
108108
"""
109109
return AgentsResourceWithRawResponse(self)
110110

@@ -113,7 +113,7 @@ def with_streaming_response(self) -> AgentsResourceWithStreamingResponse:
113113
"""
114114
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
115115
116-
For more information, see https://www.github.com/digitalocean/gradientai-python#with_streaming_response
116+
For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
117117
"""
118118
return AgentsResourceWithStreamingResponse(self)
119119

@@ -460,7 +460,7 @@ def with_raw_response(self) -> AsyncAgentsResourceWithRawResponse:
460460
This property can be used as a prefix for any HTTP method call to return
461461
the raw response object instead of the parsed content.
462462
463-
For more information, see https://www.github.com/digitalocean/gradientai-python#accessing-raw-response-data-eg-headers
463+
For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
464464
"""
465465
return AsyncAgentsResourceWithRawResponse(self)
466466

@@ -469,7 +469,7 @@ def with_streaming_response(self) -> AsyncAgentsResourceWithStreamingResponse:
469469
"""
470470
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
471471
472-
For more information, see https://www.github.com/digitalocean/gradientai-python#with_streaming_response
472+
For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
473473
"""
474474
return AsyncAgentsResourceWithStreamingResponse(self)
475475

src/gradientai/resources/agents/api_keys.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def with_raw_response(self) -> APIKeysResourceWithRawResponse:
3232
This property can be used as a prefix for any HTTP method call to return
3333
the raw response object instead of the parsed content.
3434
35-
For more information, see https://www.github.com/digitalocean/gradientai-python#accessing-raw-response-data-eg-headers
35+
For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
3636
"""
3737
return APIKeysResourceWithRawResponse(self)
3838

@@ -41,7 +41,7 @@ def with_streaming_response(self) -> APIKeysResourceWithStreamingResponse:
4141
"""
4242
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
4343
44-
For more information, see https://www.github.com/digitalocean/gradientai-python#with_streaming_response
44+
For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
4545
"""
4646
return APIKeysResourceWithStreamingResponse(self)
4747

@@ -268,7 +268,7 @@ def with_raw_response(self) -> AsyncAPIKeysResourceWithRawResponse:
268268
This property can be used as a prefix for any HTTP method call to return
269269
the raw response object instead of the parsed content.
270270
271-
For more information, see https://www.github.com/digitalocean/gradientai-python#accessing-raw-response-data-eg-headers
271+
For more information, see https://www.github.com/digitalocean/genai-python#accessing-raw-response-data-eg-headers
272272
"""
273273
return AsyncAPIKeysResourceWithRawResponse(self)
274274

@@ -277,7 +277,7 @@ def with_streaming_response(self) -> AsyncAPIKeysResourceWithStreamingResponse:
277277
"""
278278
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
279279
280-
For more information, see https://www.github.com/digitalocean/gradientai-python#with_streaming_response
280+
For more information, see https://www.github.com/digitalocean/genai-python#with_streaming_response
281281
"""
282282
return AsyncAPIKeysResourceWithStreamingResponse(self)
283283

0 commit comments

Comments
 (0)