diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 83bca8f716a..ac9a2e75218 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} USER vscode -RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash +RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash ENV PATH=/home/vscode/.rye/shims:$PATH RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e853349a718..021ad706126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: curl -sSf https://rye.astral.sh/get | bash echo "$HOME/.rye/shims" >> $GITHUB_PATH env: - RYE_VERSION: 0.24.0 + RYE_VERSION: '0.35.0' RYE_INSTALL_OPTION: '--yes' - name: Install dependencies @@ -41,7 +41,7 @@ jobs: curl -sSf https://rye.astral.sh/get | bash echo "$HOME/.rye/shims" >> $GITHUB_PATH env: - RYE_VERSION: 0.24.0 + RYE_VERSION: '0.35.0' RYE_INSTALL_OPTION: '--yes' - name: Bootstrap @@ -61,8 +61,8 @@ jobs: curl -sSf https://rye.astral.sh/get | bash echo "$HOME/.rye/shims" >> $GITHUB_PATH env: - RYE_VERSION: 0.24.0 - RYE_INSTALL_OPTION: "--yes" + RYE_VERSION: '0.35.0' + RYE_INSTALL_OPTION: '--yes' - name: Install dependencies run: | rye sync --all-features diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 6528ad30f81..60c0cde4031 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -21,8 +21,8 @@ jobs: curl -sSf https://rye.astral.sh/get | bash echo "$HOME/.rye/shims" >> $GITHUB_PATH env: - RYE_VERSION: 0.24.0 - RYE_INSTALL_OPTION: "--yes" + RYE_VERSION: '0.35.0' + RYE_INSTALL_OPTION: '--yes' - name: Publish to PyPI run: | diff --git a/.stats.yml b/.stats.yml index edc2c51eae3..4d35e2d2ce3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1254 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9ec83085fa15e1f1cc613401a707a27556909eab3b6b756359938f8fd4a1aef4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad7a39118e76762e485d8d1f264939212ed6a602f6e717a254cf924316e058f0.yml diff --git a/requirements-dev.lock b/requirements-dev.lock index c046db3be31..12d3582d538 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -6,6 +6,7 @@ # features: [] # all-features: true # with-sources: false +# generate-hashes: false -e file:. annotated-types==0.6.0 diff --git a/requirements.lock b/requirements.lock index 018cc774500..a0d34229e70 100644 --- a/requirements.lock +++ b/requirements.lock @@ -6,6 +6,7 @@ # features: [] # all-features: true # with-sources: false +# generate-hashes: false -e file:. annotated-types==0.6.0 diff --git a/src/cloudflare/resources/workers/ai/ai.py b/src/cloudflare/resources/workers/ai/ai.py index c92feba6e64..d2ee0cb1b99 100644 --- a/src/cloudflare/resources/workers/ai/ai.py +++ b/src/cloudflare/resources/workers/ai/ai.py @@ -133,6 +133,8 @@ def run( prompt: str, guidance: float | NotGiven = NOT_GIVEN, image: Iterable[float] | NotGiven = NOT_GIVEN, + lora_weights: Iterable[float] | NotGiven = NOT_GIVEN, + loras: List[str] | NotGiven = NOT_GIVEN, mask: Iterable[float] | NotGiven = NOT_GIVEN, num_steps: int | NotGiven = NOT_GIVEN, strength: float | NotGiven = NOT_GIVEN, @@ -486,6 +488,8 @@ def run( prompt: str | NotGiven = NOT_GIVEN, guidance: float | NotGiven = NOT_GIVEN, image: Iterable[float] | NotGiven = NOT_GIVEN, + lora_weights: Iterable[float] | NotGiven = NOT_GIVEN, + loras: List[str] | NotGiven = NOT_GIVEN, mask: Iterable[float] | NotGiven = NOT_GIVEN, num_steps: int | NotGiven = NOT_GIVEN, strength: float | NotGiven = NOT_GIVEN, @@ -624,6 +628,8 @@ async def run( prompt: str, guidance: float | NotGiven = NOT_GIVEN, image: Iterable[float] | NotGiven = NOT_GIVEN, + lora_weights: Iterable[float] | NotGiven = NOT_GIVEN, + loras: List[str] | NotGiven = NOT_GIVEN, mask: Iterable[float] | NotGiven = NOT_GIVEN, num_steps: int | NotGiven = NOT_GIVEN, strength: float | NotGiven = NOT_GIVEN, @@ -977,6 +983,8 @@ async def run( prompt: str | NotGiven = NOT_GIVEN, guidance: float | NotGiven = NOT_GIVEN, image: Iterable[float] | NotGiven = NOT_GIVEN, + lora_weights: Iterable[float] | NotGiven = NOT_GIVEN, + loras: List[str] | NotGiven = NOT_GIVEN, mask: Iterable[float] | NotGiven = NOT_GIVEN, num_steps: int | NotGiven = NOT_GIVEN, strength: float | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/types/workers/ai_run_params.py b/src/cloudflare/types/workers/ai_run_params.py index 0b6793cfc62..12cd367dc01 100644 --- a/src/cloudflare/types/workers/ai_run_params.py +++ b/src/cloudflare/types/workers/ai_run_params.py @@ -44,6 +44,10 @@ class TextToImage(TypedDict, total=False): image: Iterable[float] + lora_weights: Iterable[float] + + loras: List[str] + mask: Iterable[float] num_steps: int diff --git a/tests/api_resources/workers/test_ai.py b/tests/api_resources/workers/test_ai.py index 14ba8b90bbe..af717a3e838 100644 --- a/tests/api_resources/workers/test_ai.py +++ b/tests/api_resources/workers/test_ai.py @@ -140,6 +140,8 @@ def test_method_run_with_all_params_overload_3(self, client: Cloudflare) -> None prompt="x", guidance=0, image=[0, 0, 0], + lora_weights=[0, 0, 0], + loras=["string", "string", "string"], mask=[0, 0, 0], num_steps=0, strength=0, @@ -820,6 +822,8 @@ async def test_method_run_with_all_params_overload_3(self, async_client: AsyncCl prompt="x", guidance=0, image=[0, 0, 0], + lora_weights=[0, 0, 0], + loras=["string", "string", "string"], mask=[0, 0, 0], num_steps=0, strength=0,