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:
@@ -8,9 +8,6 @@ from typing import Literal, Optional, Union
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
ChatContentImageType = Literal["image_url",]
|
||||
|
||||
|
||||
ChatContentImageDetail = Union[
|
||||
Literal[
|
||||
"auto",
|
||||
@@ -39,16 +36,19 @@ class ChatContentImageImageURL(BaseModel):
|
||||
r"""Image detail level for vision models"""
|
||||
|
||||
|
||||
ChatContentImageType = Literal["image_url",]
|
||||
|
||||
|
||||
class ChatContentImageTypedDict(TypedDict):
|
||||
r"""Image content part for vision models"""
|
||||
|
||||
type: ChatContentImageType
|
||||
image_url: ChatContentImageImageURLTypedDict
|
||||
type: ChatContentImageType
|
||||
|
||||
|
||||
class ChatContentImage(BaseModel):
|
||||
r"""Image content part for vision models"""
|
||||
|
||||
type: ChatContentImageType
|
||||
|
||||
image_url: ChatContentImageImageURL
|
||||
|
||||
type: ChatContentImageType
|
||||
|
||||
Reference in New Issue
Block a user