mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
fix: add overlay to remove nullable from pagination offset params (#121)
This commit is contained in:
@@ -13,25 +13,25 @@ ErrorEventType = Literal["error",]
|
||||
class ErrorEventTypedDict(TypedDict):
|
||||
r"""Event emitted when an error occurs during streaming"""
|
||||
|
||||
type: ErrorEventType
|
||||
code: Nullable[str]
|
||||
message: str
|
||||
param: Nullable[str]
|
||||
sequence_number: float
|
||||
sequence_number: int
|
||||
type: ErrorEventType
|
||||
|
||||
|
||||
class ErrorEvent(BaseModel):
|
||||
r"""Event emitted when an error occurs during streaming"""
|
||||
|
||||
type: ErrorEventType
|
||||
|
||||
code: Nullable[str]
|
||||
|
||||
message: str
|
||||
|
||||
param: Nullable[str]
|
||||
|
||||
sequence_number: float
|
||||
sequence_number: int
|
||||
|
||||
type: ErrorEventType
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
|
||||
Reference in New Issue
Block a user