From 846629477c41aae6a787309282f3e91213a07675 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:12:21 +0000 Subject: [PATCH] chore: go live --- .github/workflows/publish-pypi.yml | 31 +++++++++ .github/workflows/release-doctor.yml | 21 ++++++ .release-please-manifest.json | 3 + CONTRIBUTING.md | 4 +- README.md | 10 +-- bin/check-release-environment | 21 ++++++ pyproject.toml | 6 +- release-please-config.json | 66 +++++++++++++++++++ src/codex/_version.py | 2 +- src/codex/resources/health.py | 8 +-- src/codex/resources/organizations/billing.py | 8 +-- .../resources/organizations/organizations.py | 8 +-- src/codex/resources/projects/access_keys.py | 8 +-- src/codex/resources/projects/knowledge.py | 8 +-- src/codex/resources/projects/projects.py | 8 +-- src/codex/resources/users/myself/api_key.py | 8 +-- src/codex/resources/users/myself/myself.py | 8 +-- .../resources/users/myself/organizations.py | 8 +-- src/codex/resources/users/users.py | 8 +-- 19 files changed, 193 insertions(+), 51 deletions(-) create mode 100644 .github/workflows/publish-pypi.yml create mode 100644 .github/workflows/release-doctor.yml create mode 100644 .release-please-manifest.json create mode 100644 bin/check-release-environment create mode 100644 release-please-config.json diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 00000000..5ed611c7 --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,31 @@ +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to PyPI in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/cleanlab/codex-python/actions/workflows/publish-pypi.yml +name: Publish PyPI +on: + workflow_dispatch: + + release: + types: [published] + +jobs: + publish: + name: publish + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rye + run: | + curl -sSf https://rye.astral.sh/get | bash + echo "$HOME/.rye/shims" >> $GITHUB_PATH + env: + RYE_VERSION: '0.35.0' + RYE_INSTALL_OPTION: '--yes' + + - name: Publish to PyPI + run: | + bash ./bin/publish-pypi + env: + PYPI_TOKEN: ${{ secrets.CODEX_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml new file mode 100644 index 00000000..2ce3cdc2 --- /dev/null +++ b/.github/workflows/release-doctor.yml @@ -0,0 +1,21 @@ +name: Release Doctor +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + release_doctor: + name: release doctor + runs-on: ubuntu-latest + if: github.repository == 'cleanlab/codex-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + + steps: + - uses: actions/checkout@v4 + + - name: Check release environment + run: | + bash ./bin/check-release-environment + env: + PYPI_TOKEN: ${{ secrets.CODEX_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..c4762802 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1-alpha.0" +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7111bafc..b9fa9a13 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```sh -$ pip install git+ssh://git@github.com/stainless-sdks/codex-python.git +$ pip install git+ssh://git@github.com/cleanlab/codex-python.git ``` Alternatively, you can build from source and install the wheel file: @@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/codex-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cleanlab/codex-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index f84291e1..683c158c 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ The REST API documentation can be found on [help.cleanlab.ai](https://help.clean ## Installation ```sh -# install from this staging repo -pip install git+ssh://git@github.com/stainless-sdks/codex-python.git +# install from the production repo +pip install git+ssh://git@github.com/cleanlab/codex-python.git ``` > [!NOTE] @@ -230,9 +230,9 @@ project = response.parse() # get the object that `projects.create()` would have print(project.id) ``` -These methods return an [`APIResponse`](https://github.com/stainless-sdks/codex-python/tree/main/src/codex/_response.py) object. +These methods return an [`APIResponse`](https://github.com/cleanlab/codex-python/tree/main/src/codex/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/codex-python/tree/main/src/codex/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/cleanlab/codex-python/tree/main/src/codex/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -340,7 +340,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/codex-python/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/cleanlab/codex-python/issues) with questions, bugs, or suggestions. ### Determining the installed version diff --git a/bin/check-release-environment b/bin/check-release-environment new file mode 100644 index 00000000..a1446a75 --- /dev/null +++ b/bin/check-release-environment @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +errors=() + +if [ -z "${PYPI_TOKEN}" ]; then + errors+=("The CODEX_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") +fi + +lenErrors=${#errors[@]} + +if [[ lenErrors -gt 0 ]]; then + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" diff --git a/pyproject.toml b/pyproject.toml index 3fba9e70..248f7eaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,8 +34,8 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/stainless-sdks/codex-python" -Repository = "https://github.com/stainless-sdks/codex-python" +Homepage = "https://github.com/cleanlab/codex-python" +Repository = "https://github.com/cleanlab/codex-python" @@ -122,7 +122,7 @@ path = "README.md" [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] # replace relative links with absolute links pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' -replacement = '[\1](https://github.com/stainless-sdks/codex-python/tree/main/\g<2>)' +replacement = '[\1](https://github.com/cleanlab/codex-python/tree/main/\g<2>)' [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..8fd34900 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,66 @@ +{ + "packages": { + ".": {} + }, + "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "include-v-in-tag": true, + "include-component-in-tag": false, + "versioning": "prerelease", + "prerelease": true, + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "pull-request-header": "Automated Release PR", + "pull-request-title-pattern": "release: ${version}", + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styles" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ], + "release-type": "python", + "extra-files": [ + "src/codex/_version.py" + ] +} \ No newline at end of file diff --git a/src/codex/_version.py b/src/codex/_version.py index 7ee46487..fd0542b8 100644 --- a/src/codex/_version.py +++ b/src/codex/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "codex" -__version__ = "0.0.1-alpha.0" +__version__ = "0.0.1-alpha.0" # x-release-please-version diff --git a/src/codex/resources/health.py b/src/codex/resources/health.py index 29c374e6..b50884e0 100644 --- a/src/codex/resources/health.py +++ b/src/codex/resources/health.py @@ -26,7 +26,7 @@ def with_raw_response(self) -> HealthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return HealthResourceWithRawResponse(self) @@ -35,7 +35,7 @@ def with_streaming_response(self) -> HealthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return HealthResourceWithStreamingResponse(self) @@ -104,7 +104,7 @@ def with_raw_response(self) -> AsyncHealthResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncHealthResourceWithRawResponse(self) @@ -113,7 +113,7 @@ def with_streaming_response(self) -> AsyncHealthResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncHealthResourceWithStreamingResponse(self) diff --git a/src/codex/resources/organizations/billing.py b/src/codex/resources/organizations/billing.py index fb234032..9c916d83 100644 --- a/src/codex/resources/organizations/billing.py +++ b/src/codex/resources/organizations/billing.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> BillingResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return BillingResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> BillingResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return BillingResourceWithStreamingResponse(self) @@ -114,7 +114,7 @@ def with_raw_response(self) -> AsyncBillingResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncBillingResourceWithRawResponse(self) @@ -123,7 +123,7 @@ def with_streaming_response(self) -> AsyncBillingResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncBillingResourceWithStreamingResponse(self) diff --git a/src/codex/resources/organizations/organizations.py b/src/codex/resources/organizations/organizations.py index 3aad77e0..e91099e3 100644 --- a/src/codex/resources/organizations/organizations.py +++ b/src/codex/resources/organizations/organizations.py @@ -38,7 +38,7 @@ def with_raw_response(self) -> OrganizationsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return OrganizationsResourceWithRawResponse(self) @@ -47,7 +47,7 @@ def with_streaming_response(self) -> OrganizationsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return OrganizationsResourceWithStreamingResponse(self) @@ -96,7 +96,7 @@ def with_raw_response(self) -> AsyncOrganizationsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncOrganizationsResourceWithRawResponse(self) @@ -105,7 +105,7 @@ def with_streaming_response(self) -> AsyncOrganizationsResourceWithStreamingResp """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncOrganizationsResourceWithStreamingResponse(self) diff --git a/src/codex/resources/projects/access_keys.py b/src/codex/resources/projects/access_keys.py index 2882e65b..e282ad4f 100644 --- a/src/codex/resources/projects/access_keys.py +++ b/src/codex/resources/projects/access_keys.py @@ -36,7 +36,7 @@ def with_raw_response(self) -> AccessKeysResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AccessKeysResourceWithRawResponse(self) @@ -45,7 +45,7 @@ def with_streaming_response(self) -> AccessKeysResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AccessKeysResourceWithStreamingResponse(self) @@ -290,7 +290,7 @@ def with_raw_response(self) -> AsyncAccessKeysResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncAccessKeysResourceWithRawResponse(self) @@ -299,7 +299,7 @@ def with_streaming_response(self) -> AsyncAccessKeysResourceWithStreamingRespons """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncAccessKeysResourceWithStreamingResponse(self) diff --git a/src/codex/resources/projects/knowledge.py b/src/codex/resources/projects/knowledge.py index 6005f9cc..9c43c669 100644 --- a/src/codex/resources/projects/knowledge.py +++ b/src/codex/resources/projects/knowledge.py @@ -41,7 +41,7 @@ def with_raw_response(self) -> KnowledgeResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return KnowledgeResourceWithRawResponse(self) @@ -50,7 +50,7 @@ def with_streaming_response(self) -> KnowledgeResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return KnowledgeResourceWithStreamingResponse(self) @@ -339,7 +339,7 @@ def with_raw_response(self) -> AsyncKnowledgeResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncKnowledgeResourceWithRawResponse(self) @@ -348,7 +348,7 @@ def with_streaming_response(self) -> AsyncKnowledgeResourceWithStreamingResponse """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncKnowledgeResourceWithStreamingResponse(self) diff --git a/src/codex/resources/projects/projects.py b/src/codex/resources/projects/projects.py index 20e95366..845669a8 100644 --- a/src/codex/resources/projects/projects.py +++ b/src/codex/resources/projects/projects.py @@ -58,7 +58,7 @@ def with_raw_response(self) -> ProjectsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return ProjectsResourceWithRawResponse(self) @@ -67,7 +67,7 @@ def with_streaming_response(self) -> ProjectsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return ProjectsResourceWithStreamingResponse(self) @@ -301,7 +301,7 @@ def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncProjectsResourceWithRawResponse(self) @@ -310,7 +310,7 @@ def with_streaming_response(self) -> AsyncProjectsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncProjectsResourceWithStreamingResponse(self) diff --git a/src/codex/resources/users/myself/api_key.py b/src/codex/resources/users/myself/api_key.py index f4108375..c2784b81 100644 --- a/src/codex/resources/users/myself/api_key.py +++ b/src/codex/resources/users/myself/api_key.py @@ -26,7 +26,7 @@ def with_raw_response(self) -> APIKeyResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return APIKeyResourceWithRawResponse(self) @@ -35,7 +35,7 @@ def with_streaming_response(self) -> APIKeyResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return APIKeyResourceWithStreamingResponse(self) @@ -66,7 +66,7 @@ def with_raw_response(self) -> AsyncAPIKeyResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncAPIKeyResourceWithRawResponse(self) @@ -75,7 +75,7 @@ def with_streaming_response(self) -> AsyncAPIKeyResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncAPIKeyResourceWithStreamingResponse(self) diff --git a/src/codex/resources/users/myself/myself.py b/src/codex/resources/users/myself/myself.py index 51d0b16b..ba4548e5 100644 --- a/src/codex/resources/users/myself/myself.py +++ b/src/codex/resources/users/myself/myself.py @@ -50,7 +50,7 @@ def with_raw_response(self) -> MyselfResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return MyselfResourceWithRawResponse(self) @@ -59,7 +59,7 @@ def with_streaming_response(self) -> MyselfResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return MyselfResourceWithStreamingResponse(self) @@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncMyselfResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncMyselfResourceWithRawResponse(self) @@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncMyselfResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncMyselfResourceWithStreamingResponse(self) diff --git a/src/codex/resources/users/myself/organizations.py b/src/codex/resources/users/myself/organizations.py index 5c37dd69..12e799aa 100644 --- a/src/codex/resources/users/myself/organizations.py +++ b/src/codex/resources/users/myself/organizations.py @@ -26,7 +26,7 @@ def with_raw_response(self) -> OrganizationsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return OrganizationsResourceWithRawResponse(self) @@ -35,7 +35,7 @@ def with_streaming_response(self) -> OrganizationsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return OrganizationsResourceWithStreamingResponse(self) @@ -66,7 +66,7 @@ def with_raw_response(self) -> AsyncOrganizationsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncOrganizationsResourceWithRawResponse(self) @@ -75,7 +75,7 @@ def with_streaming_response(self) -> AsyncOrganizationsResourceWithStreamingResp """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncOrganizationsResourceWithStreamingResponse(self) diff --git a/src/codex/resources/users/users.py b/src/codex/resources/users/users.py index 4d229677..ea5019c2 100644 --- a/src/codex/resources/users/users.py +++ b/src/codex/resources/users/users.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return UsersResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return UsersResourceWithStreamingResponse(self) @@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/codex-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/cleanlab/codex-python#accessing-raw-response-data-eg-headers """ return AsyncUsersResourceWithRawResponse(self) @@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/codex-python#with_streaming_response + For more information, see https://www.github.com/cleanlab/codex-python#with_streaming_response """ return AsyncUsersResourceWithStreamingResponse(self)