mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
26 lines
714 B
Python
26 lines
714 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
import pydantic
|
|
from typing import List, Optional
|
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
|
|
|
class StreamLogprobTopLogprobTypedDict(TypedDict):
|
|
r"""Alternative token with its log probability"""
|
|
|
|
bytes_: NotRequired[List[int]]
|
|
logprob: NotRequired[float]
|
|
token: NotRequired[str]
|
|
|
|
|
|
class StreamLogprobTopLogprob(BaseModel):
|
|
r"""Alternative token with its log probability"""
|
|
|
|
bytes_: Annotated[Optional[List[int]], pydantic.Field(alias="bytes")] = None
|
|
|
|
logprob: Optional[float] = None
|
|
|
|
token: Optional[str] = None
|