mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.10.6 (#376)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
a243d78d32
commit
21020fb334
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.10.5"
|
||||
__version__: str = "0.10.6"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.788.4"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.5 2.788.4 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.6 2.788.4 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -74,6 +74,7 @@ BYOKProviderSlug = Union[
|
||||
"perplexity",
|
||||
"phala",
|
||||
"poolside",
|
||||
"quiver",
|
||||
"recraft",
|
||||
"reka",
|
||||
"relace",
|
||||
|
||||
@@ -56,10 +56,11 @@ ImageGenerationRequestOutputFormat = Union[
|
||||
"png",
|
||||
"jpeg",
|
||||
"webp",
|
||||
"svg",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
r"""Encoding of the returned image bytes."""
|
||||
r"""Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`."""
|
||||
|
||||
|
||||
class ImageGenerationRequestOptionsTypedDict(TypedDict):
|
||||
@@ -155,6 +156,7 @@ class ImageGenerationRequestOptionsTypedDict(TypedDict):
|
||||
perplexity: NotRequired[Dict[str, Nullable[Any]]]
|
||||
phala: NotRequired[Dict[str, Nullable[Any]]]
|
||||
poolside: NotRequired[Dict[str, Nullable[Any]]]
|
||||
quiver: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recraft: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recursal: NotRequired[Dict[str, Nullable[Any]]]
|
||||
reflection: NotRequired[Dict[str, Nullable[Any]]]
|
||||
@@ -407,6 +409,8 @@ class ImageGenerationRequestOptions(BaseModel):
|
||||
|
||||
poolside: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
quiver: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recraft: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recursal: Optional[Dict[str, Nullable[Any]]] = None
|
||||
@@ -530,7 +534,7 @@ class ImageGenerationRequestTypedDict(TypedDict):
|
||||
output_compression: NotRequired[int]
|
||||
r"""Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob."""
|
||||
output_format: NotRequired[ImageGenerationRequestOutputFormat]
|
||||
r"""Encoding of the returned image bytes."""
|
||||
r"""Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`."""
|
||||
provider: NotRequired[ImageGenerationRequestProviderTypedDict]
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
quality: NotRequired[ImageGenerationRequestQuality]
|
||||
@@ -579,7 +583,7 @@ class ImageGenerationRequest(BaseModel):
|
||||
Optional[ImageGenerationRequestOutputFormat],
|
||||
PlainValidator(validate_open_enum(False)),
|
||||
] = None
|
||||
r"""Encoding of the returned image bytes."""
|
||||
r"""Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`."""
|
||||
|
||||
provider: Optional[ImageGenerationRequestProvider] = None
|
||||
r"""Provider-specific passthrough configuration"""
|
||||
|
||||
@@ -93,6 +93,7 @@ ProviderName = Union[
|
||||
"Venice",
|
||||
"Wafer",
|
||||
"WandB",
|
||||
"Quiver",
|
||||
"Xiaomi",
|
||||
"xAI",
|
||||
"Z.AI",
|
||||
|
||||
@@ -100,6 +100,7 @@ class ProviderOptionsTypedDict(TypedDict):
|
||||
perplexity: NotRequired[Dict[str, Nullable[Any]]]
|
||||
phala: NotRequired[Dict[str, Nullable[Any]]]
|
||||
poolside: NotRequired[Dict[str, Nullable[Any]]]
|
||||
quiver: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recraft: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recursal: NotRequired[Dict[str, Nullable[Any]]]
|
||||
reflection: NotRequired[Dict[str, Nullable[Any]]]
|
||||
@@ -352,6 +353,8 @@ class ProviderOptions(BaseModel):
|
||||
|
||||
poolside: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
quiver: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recraft: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recursal: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
@@ -126,6 +126,7 @@ ProviderResponseProviderName = Union[
|
||||
"Venice",
|
||||
"Wafer",
|
||||
"WandB",
|
||||
"Quiver",
|
||||
"Xiaomi",
|
||||
"xAI",
|
||||
"Z.AI",
|
||||
|
||||
@@ -121,6 +121,7 @@ class VideoGenerationRequestOptionsTypedDict(TypedDict):
|
||||
perplexity: NotRequired[Dict[str, Nullable[Any]]]
|
||||
phala: NotRequired[Dict[str, Nullable[Any]]]
|
||||
poolside: NotRequired[Dict[str, Nullable[Any]]]
|
||||
quiver: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recraft: NotRequired[Dict[str, Nullable[Any]]]
|
||||
recursal: NotRequired[Dict[str, Nullable[Any]]]
|
||||
reflection: NotRequired[Dict[str, Nullable[Any]]]
|
||||
@@ -373,6 +374,8 @@ class VideoGenerationRequestOptions(BaseModel):
|
||||
|
||||
poolside: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
quiver: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recraft: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
recursal: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
@@ -72,7 +72,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
@@ -140,7 +140,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
@@ -207,7 +207,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
@@ -483,7 +483,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
@@ -551,7 +551,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
@@ -618,7 +618,7 @@ class Images(BaseSDK):
|
||||
:param input_references: Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
|
||||
:param n: Number of images to generate (1-10). Providers that only support single-image generation reject n > 1.
|
||||
:param output_compression: Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
|
||||
:param output_format: Encoding of the returned image bytes.
|
||||
:param output_format: Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
||||
:param provider: Provider-specific passthrough configuration
|
||||
:param quality: Rendering quality. Providers without a quality knob ignore this.
|
||||
:param resolution: Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
||||
|
||||
@@ -132,6 +132,7 @@ Provider = Union[
|
||||
"perplexity",
|
||||
"phala",
|
||||
"poolside",
|
||||
"quiver",
|
||||
"recraft",
|
||||
"reka",
|
||||
"relace",
|
||||
|
||||
Reference in New Issue
Block a user