"""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 from typing_extensions import TypedDict class MessagesFallbackParamTypedDict(TypedDict): r"""Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.""" model: str class MessagesFallbackParam(BaseModel): r"""Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.""" model_config = ConfigDict( populate_by_name=True, arbitrary_types_allowed=True, extra="allow" ) __pydantic_extra__: Dict[str, Nullable[Any]] = pydantic.Field(init=False) model: str @property def additional_properties(self): return self.__pydantic_extra__ @additional_properties.setter def additional_properties(self, value): self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]