mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
28 lines
1.3 KiB
Python
28 lines
1.3 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
from typing import Literal, Optional
|
|
from typing_extensions import NotRequired, TypedDict
|
|
|
|
|
|
ParetoRouterPluginID = Literal["pareto-router",]
|
|
|
|
|
|
class ParetoRouterPluginTypedDict(TypedDict):
|
|
id: ParetoRouterPluginID
|
|
enabled: NotRequired[bool]
|
|
r"""Set to false to disable the pareto-router plugin for this request. Defaults to true."""
|
|
min_coding_score: NotRequired[float]
|
|
r"""Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier."""
|
|
|
|
|
|
class ParetoRouterPlugin(BaseModel):
|
|
id: ParetoRouterPluginID
|
|
|
|
enabled: Optional[bool] = None
|
|
r"""Set to false to disable the pareto-router plugin for this request. Defaults to true."""
|
|
|
|
min_coding_score: Optional[float] = None
|
|
r"""Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier."""
|