mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
37 lines
751 B
Python
37 lines
751 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
from typing import Literal
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
RefusalDeltaEventType = Literal["response.refusal.delta",]
|
|
|
|
|
|
class RefusalDeltaEventTypedDict(TypedDict):
|
|
r"""Event emitted when a refusal delta is streamed"""
|
|
|
|
content_index: int
|
|
delta: str
|
|
item_id: str
|
|
output_index: int
|
|
sequence_number: int
|
|
type: RefusalDeltaEventType
|
|
|
|
|
|
class RefusalDeltaEvent(BaseModel):
|
|
r"""Event emitted when a refusal delta is streamed"""
|
|
|
|
content_index: int
|
|
|
|
delta: str
|
|
|
|
item_id: str
|
|
|
|
output_index: int
|
|
|
|
sequence_number: int
|
|
|
|
type: RefusalDeltaEventType
|