mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel, Nullable
|
|
import pydantic
|
|
from pydantic import ConfigDict
|
|
from typing import Any, Dict, Optional
|
|
from typing_extensions import NotRequired, TypedDict
|
|
|
|
|
|
class RouterParamsTypedDict(TypedDict):
|
|
quality_floor: NotRequired[float]
|
|
throughput_floor: NotRequired[float]
|
|
version_group: NotRequired[str]
|
|
|
|
|
|
class RouterParams(BaseModel):
|
|
model_config = ConfigDict(
|
|
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
)
|
|
__pydantic_extra__: Dict[str, Nullable[Any]] = pydantic.Field(init=False)
|
|
|
|
quality_floor: Optional[float] = None
|
|
|
|
throughput_floor: Optional[float] = None
|
|
|
|
version_group: Optional[str] = None
|
|
|
|
@property
|
|
def additional_properties(self):
|
|
return self.__pydantic_extra__
|
|
|
|
@additional_properties.setter
|
|
def additional_properties(self, value):
|
|
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|