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:
@@ -6,9 +6,6 @@ from typing import Literal, Optional
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
ChatContentFileType = Literal["file",]
|
||||
|
||||
|
||||
class FileTypedDict(TypedDict):
|
||||
file_data: NotRequired[str]
|
||||
r"""File content as base64 data URL or URL"""
|
||||
@@ -29,16 +26,19 @@ class File(BaseModel):
|
||||
r"""Original filename"""
|
||||
|
||||
|
||||
ChatContentFileType = Literal["file",]
|
||||
|
||||
|
||||
class ChatContentFileTypedDict(TypedDict):
|
||||
r"""File content part for document processing"""
|
||||
|
||||
type: ChatContentFileType
|
||||
file: FileTypedDict
|
||||
type: ChatContentFileType
|
||||
|
||||
|
||||
class ChatContentFile(BaseModel):
|
||||
r"""File content part for document processing"""
|
||||
|
||||
type: ChatContentFileType
|
||||
|
||||
file: File
|
||||
|
||||
type: ChatContentFileType
|
||||
|
||||
Reference in New Issue
Block a user