Skip to content

Commit abbef17

Browse files
chore: update SDK settings
1 parent a47b6ba commit abbef17

File tree

11 files changed

+28
-67
lines changed

11 files changed

+28
-67
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/relax-ai/python-sdk/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/bennorris123/python-sdk-test/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 == 'relax-ai/python-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'bennorris123/python-sdk-test' && (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.RELAXAI_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: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/civo%2Frelaxai-ca3df58b448690617c749fa2fd5aed1167dc743e57b2ee962b5520c0248a1730.yml
33
openapi_spec_hash: 2dd95dddf58e2b32908eb05fd7304233
4-
config_hash: f4d01f2c8a65327fc306800fd937b4e3
4+
config_hash: 0db0a79e5d3056ccba89d912a1b59182

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/relax-ai/python-sdk.git
65+
$ pip install git+ssh://git@github.com/bennorris123/python-sdk-test.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/relax-ai/python-sdk/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/bennorris123/python-sdk-test/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
@@ -328,9 +328,9 @@ chat = response.parse() # get the object that `chat.create_completion()` would
328328
print(chat.id)
329329
```
330330

331-
These methods return an [`APIResponse`](https://github.com/relax-ai/python-sdk/tree/main/src/relaxai/_response.py) object.
331+
These methods return an [`APIResponse`](https://github.com/bennorris123/python-sdk-test/tree/main/src/relaxai/_response.py) object.
332332

333-
The async client returns an [`AsyncAPIResponse`](https://github.com/relax-ai/python-sdk/tree/main/src/relaxai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
333+
The async client returns an [`AsyncAPIResponse`](https://github.com/bennorris123/python-sdk-test/tree/main/src/relaxai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
334334

335335
#### `.with_streaming_response`
336336

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

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

447-
We are keen for your feedback; please open an [issue](https://www.github.com/relax-ai/python-sdk/issues) with questions, bugs, or suggestions.
447+
We are keen for your feedback; please open an [issue](https://www.github.com/bennorris123/python-sdk-test/issues) with questions, bugs, or suggestions.
448448

449449
### Determining the installed version
450450

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 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
@@ -35,8 +35,8 @@ classifiers = [
3535
]
3636

3737
[project.urls]
38-
Homepage = "https://github.com/relax-ai/python-sdk"
39-
Repository = "https://github.com/relax-ai/python-sdk"
38+
Homepage = "https://github.com/bennorris123/python-sdk-test"
39+
Repository = "https://github.com/bennorris123/python-sdk-test"
4040

4141
[project.optional-dependencies]
4242
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
@@ -125,7 +125,7 @@ path = "README.md"
125125
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
126126
# replace relative links with absolute links
127127
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
128-
replacement = '[\1](https://github.com/relax-ai/python-sdk/tree/main/\g<2>)'
128+
replacement = '[\1](https://github.com/bennorris123/python-sdk-test/tree/main/\g<2>)'
129129

130130
[tool.pytest.ini_options]
131131
testpaths = ["tests"]

src/relaxai/resources/chat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def with_raw_response(self) -> ChatResourceWithRawResponse:
3333
This property can be used as a prefix for any HTTP method call to return
3434
the raw response object instead of the parsed content.
3535
36-
For more information, see https://www.github.com/relax-ai/python-sdk#accessing-raw-response-data-eg-headers
36+
For more information, see https://www.github.com/bennorris123/python-sdk-test#accessing-raw-response-data-eg-headers
3737
"""
3838
return ChatResourceWithRawResponse(self)
3939

@@ -42,7 +42,7 @@ def with_streaming_response(self) -> ChatResourceWithStreamingResponse:
4242
"""
4343
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
4444
45-
For more information, see https://www.github.com/relax-ai/python-sdk#with_streaming_response
45+
For more information, see https://www.github.com/bennorris123/python-sdk-test#with_streaming_response
4646
"""
4747
return ChatResourceWithStreamingResponse(self)
4848

@@ -145,7 +145,7 @@ def with_raw_response(self) -> AsyncChatResourceWithRawResponse:
145145
This property can be used as a prefix for any HTTP method call to return
146146
the raw response object instead of the parsed content.
147147
148-
For more information, see https://www.github.com/relax-ai/python-sdk#accessing-raw-response-data-eg-headers
148+
For more information, see https://www.github.com/bennorris123/python-sdk-test#accessing-raw-response-data-eg-headers
149149
"""
150150
return AsyncChatResourceWithRawResponse(self)
151151

@@ -154,7 +154,7 @@ def with_streaming_response(self) -> AsyncChatResourceWithStreamingResponse:
154154
"""
155155
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
156156
157-
For more information, see https://www.github.com/relax-ai/python-sdk#with_streaming_response
157+
For more information, see https://www.github.com/bennorris123/python-sdk-test#with_streaming_response
158158
"""
159159
return AsyncChatResourceWithStreamingResponse(self)
160160

src/relaxai/resources/embeddings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
2828
This property can be used as a prefix for any HTTP method call to return
2929
the raw response object instead of the parsed content.
3030
31-
For more information, see https://www.github.com/relax-ai/python-sdk#accessing-raw-response-data-eg-headers
31+
For more information, see https://www.github.com/bennorris123/python-sdk-test#accessing-raw-response-data-eg-headers
3232
"""
3333
return EmbeddingsResourceWithRawResponse(self)
3434

@@ -37,7 +37,7 @@ def with_streaming_response(self) -> EmbeddingsResourceWithStreamingResponse:
3737
"""
3838
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
3939
40-
For more information, see https://www.github.com/relax-ai/python-sdk#with_streaming_response
40+
For more information, see https://www.github.com/bennorris123/python-sdk-test#with_streaming_response
4141
"""
4242
return EmbeddingsResourceWithStreamingResponse(self)
4343

@@ -94,7 +94,7 @@ def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
9494
This property can be used as a prefix for any HTTP method call to return
9595
the raw response object instead of the parsed content.
9696
97-
For more information, see https://www.github.com/relax-ai/python-sdk#accessing-raw-response-data-eg-headers
97+
For more information, see https://www.github.com/bennorris123/python-sdk-test#accessing-raw-response-data-eg-headers
9898
"""
9999
return AsyncEmbeddingsResourceWithRawResponse(self)
100100

@@ -103,7 +103,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsResourceWithStreamingRespons
103103
"""
104104
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
105105
106-
For more information, see https://www.github.com/relax-ai/python-sdk#with_streaming_response
106+
For more information, see https://www.github.com/bennorris123/python-sdk-test#with_streaming_response
107107
"""
108108
return AsyncEmbeddingsResourceWithStreamingResponse(self)
109109

0 commit comments

Comments
 (0)