mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
fix: add overlay to remove nullable from pagination offset params (#121)
This commit is contained in:
@@ -16,9 +16,6 @@ from typing import Literal, Union
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
InputImageType = Literal["input_image",]
|
||||
|
||||
|
||||
InputImageDetail = Union[
|
||||
Literal[
|
||||
"auto",
|
||||
@@ -29,21 +26,24 @@ InputImageDetail = Union[
|
||||
]
|
||||
|
||||
|
||||
InputImageType = Literal["input_image",]
|
||||
|
||||
|
||||
class InputImageTypedDict(TypedDict):
|
||||
r"""Image input content item"""
|
||||
|
||||
type: InputImageType
|
||||
detail: InputImageDetail
|
||||
type: InputImageType
|
||||
image_url: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class InputImage(BaseModel):
|
||||
r"""Image input content item"""
|
||||
|
||||
type: InputImageType
|
||||
|
||||
detail: Annotated[InputImageDetail, PlainValidator(validate_open_enum(False))]
|
||||
|
||||
type: InputImageType
|
||||
|
||||
image_url: OptionalNullable[str] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
|
||||
Reference in New Issue
Block a user