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:
@@ -7,9 +7,6 @@ from typing import Literal
|
||||
from typing_extensions import Annotated, TypedDict
|
||||
|
||||
|
||||
ChatContentAudioType = Literal["input_audio",]
|
||||
|
||||
|
||||
class ChatContentAudioInputAudioTypedDict(TypedDict):
|
||||
data: str
|
||||
r"""Base64 encoded audio data"""
|
||||
@@ -25,16 +22,19 @@ class ChatContentAudioInputAudio(BaseModel):
|
||||
r"""Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider."""
|
||||
|
||||
|
||||
ChatContentAudioType = Literal["input_audio",]
|
||||
|
||||
|
||||
class ChatContentAudioTypedDict(TypedDict):
|
||||
r"""Audio input content part. Supported audio formats vary by provider."""
|
||||
|
||||
type: ChatContentAudioType
|
||||
input_audio: ChatContentAudioInputAudioTypedDict
|
||||
type: ChatContentAudioType
|
||||
|
||||
|
||||
class ChatContentAudio(BaseModel):
|
||||
r"""Audio input content part. Supported audio formats vary by provider."""
|
||||
|
||||
type: ChatContentAudioType
|
||||
|
||||
input_audio: ChatContentAudioInputAudio
|
||||
|
||||
type: ChatContentAudioType
|
||||
|
||||
Reference in New Issue
Block a user