mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-09 11:27:54 +08:00
chore: 🐝 Update SDK - Generate 0.10.1 (#366)
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]
parent
667941aaa8
commit
5e0b1a2b69
@@ -0,0 +1,65 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel, Nullable, UnrecognizedStr
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Any, Dict, Literal, Optional, Union
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
Event = Union[
|
||||
Literal[
|
||||
"adapter_request",
|
||||
"upstream_headers_received",
|
||||
"first_token_received",
|
||||
"upstream_body_ended",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
|
||||
|
||||
class TimingsTypedDict(TypedDict):
|
||||
epoch_ms: int
|
||||
event: Event
|
||||
start_ms: int
|
||||
|
||||
|
||||
class Timings(BaseModel):
|
||||
epoch_ms: int
|
||||
|
||||
event: Annotated[Event, PlainValidator(validate_open_enum(False))]
|
||||
|
||||
start_ms: int
|
||||
|
||||
|
||||
class DebugTypedDict(TypedDict):
|
||||
echo_upstream_body: NotRequired[Dict[str, Nullable[Any]]]
|
||||
timings: NotRequired[TimingsTypedDict]
|
||||
|
||||
|
||||
class Debug(BaseModel):
|
||||
echo_upstream_body: Optional[Dict[str, Nullable[Any]]] = None
|
||||
|
||||
timings: Optional[Timings] = None
|
||||
|
||||
|
||||
DebugEventType = Literal["response.debug",]
|
||||
|
||||
|
||||
class DebugEventTypedDict(TypedDict):
|
||||
r"""Debug event emitted when debug.echo_upstream_body is true. Contains the transformed upstream request body or timing milestones."""
|
||||
|
||||
debug: DebugTypedDict
|
||||
sequence_number: int
|
||||
type: DebugEventType
|
||||
|
||||
|
||||
class DebugEvent(BaseModel):
|
||||
r"""Debug event emitted when debug.echo_upstream_body is true. Contains the transformed upstream request body or timing milestones."""
|
||||
|
||||
debug: Debug
|
||||
|
||||
sequence_number: int
|
||||
|
||||
type: DebugEventType
|
||||
Reference in New Issue
Block a user