mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
Speakeasy regeneration with latest schema changes including type renames and new server tool models.
63 lines
1.5 KiB
Python
63 lines
1.5 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from .openairesponsesannotation import (
|
|
OpenAIResponsesAnnotation,
|
|
OpenAIResponsesAnnotationTypedDict,
|
|
)
|
|
from openrouter.types import BaseModel
|
|
import pydantic
|
|
from typing import List, Literal, Optional
|
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
|
|
|
ResponseOutputTextType = Literal["output_text",]
|
|
|
|
|
|
class ResponseOutputTextTopLogprobTypedDict(TypedDict):
|
|
token: str
|
|
bytes_: List[float]
|
|
logprob: float
|
|
|
|
|
|
class ResponseOutputTextTopLogprob(BaseModel):
|
|
token: str
|
|
|
|
bytes_: Annotated[List[float], pydantic.Field(alias="bytes")]
|
|
|
|
logprob: float
|
|
|
|
|
|
class ResponseOutputTextLogprobTypedDict(TypedDict):
|
|
token: str
|
|
bytes_: List[float]
|
|
logprob: float
|
|
top_logprobs: List[ResponseOutputTextTopLogprobTypedDict]
|
|
|
|
|
|
class ResponseOutputTextLogprob(BaseModel):
|
|
token: str
|
|
|
|
bytes_: Annotated[List[float], pydantic.Field(alias="bytes")]
|
|
|
|
logprob: float
|
|
|
|
top_logprobs: List[ResponseOutputTextTopLogprob]
|
|
|
|
|
|
class ResponseOutputTextTypedDict(TypedDict):
|
|
type: ResponseOutputTextType
|
|
text: str
|
|
annotations: NotRequired[List[OpenAIResponsesAnnotationTypedDict]]
|
|
logprobs: NotRequired[List[ResponseOutputTextLogprobTypedDict]]
|
|
|
|
|
|
class ResponseOutputText(BaseModel):
|
|
type: ResponseOutputTextType
|
|
|
|
text: str
|
|
|
|
annotations: Optional[List[OpenAIResponsesAnnotation]] = None
|
|
|
|
logprobs: Optional[List[ResponseOutputTextLogprob]] = None
|