mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): OpenAPI spec update via Stainless API (#1166)
This commit is contained in:
parent
6503a1689e
commit
3dcb89f67e
9 changed files with 26 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
.github/workflows/publish-pypi.yml
vendored
4
.github/workflows/publish-pypi.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
# features: []
|
||||
# all-features: true
|
||||
# with-sources: false
|
||||
# generate-hashes: false
|
||||
|
||||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
# features: []
|
||||
# all-features: true
|
||||
# with-sources: false
|
||||
# generate-hashes: false
|
||||
|
||||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
|
|
|
|||
|
|
@ -133,6 +133,8 @@ class AIResource(SyncAPIResource):
|
|||
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 @@ class AIResource(SyncAPIResource):
|
|||
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 @@ class AsyncAIResource(AsyncAPIResource):
|
|||
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 @@ class AsyncAIResource(AsyncAPIResource):
|
|||
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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -140,6 +140,8 @@ class TestAI:
|
|||
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 @@ class TestAsyncAI:
|
|||
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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue