mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
41 lines
879 B
Python
41 lines
879 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from .streamlogprob import StreamLogprob, StreamLogprobTypedDict
|
|
from openrouter.types import BaseModel
|
|
from typing import List, Literal
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
TextDoneEventType = Literal["response.output_text.done",]
|
|
|
|
|
|
class TextDoneEventTypedDict(TypedDict):
|
|
r"""Event emitted when text streaming is complete"""
|
|
|
|
content_index: int
|
|
item_id: str
|
|
logprobs: List[StreamLogprobTypedDict]
|
|
output_index: int
|
|
sequence_number: int
|
|
text: str
|
|
type: TextDoneEventType
|
|
|
|
|
|
class TextDoneEvent(BaseModel):
|
|
r"""Event emitted when text streaming is complete"""
|
|
|
|
content_index: int
|
|
|
|
item_id: str
|
|
|
|
logprobs: List[StreamLogprob]
|
|
|
|
output_index: int
|
|
|
|
sequence_number: int
|
|
|
|
text: str
|
|
|
|
type: TextDoneEventType
|