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:
@@ -7,9 +7,6 @@ from typing import List, Literal, Optional, Union
|
||||
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
||||
|
||||
|
||||
ChatUserMessageRole = Literal["user",]
|
||||
|
||||
|
||||
ChatUserMessageContentTypedDict = TypeAliasType(
|
||||
"ChatUserMessageContentTypedDict", Union[str, List[ChatContentItemsTypedDict]]
|
||||
)
|
||||
@@ -22,12 +19,15 @@ ChatUserMessageContent = TypeAliasType(
|
||||
r"""User message content"""
|
||||
|
||||
|
||||
ChatUserMessageRole = Literal["user",]
|
||||
|
||||
|
||||
class ChatUserMessageTypedDict(TypedDict):
|
||||
r"""User message"""
|
||||
|
||||
role: ChatUserMessageRole
|
||||
content: ChatUserMessageContentTypedDict
|
||||
r"""User message content"""
|
||||
role: ChatUserMessageRole
|
||||
name: NotRequired[str]
|
||||
r"""Optional name for the user"""
|
||||
|
||||
@@ -35,10 +35,10 @@ class ChatUserMessageTypedDict(TypedDict):
|
||||
class ChatUserMessage(BaseModel):
|
||||
r"""User message"""
|
||||
|
||||
role: ChatUserMessageRole
|
||||
|
||||
content: ChatUserMessageContent
|
||||
r"""User message content"""
|
||||
|
||||
role: ChatUserMessageRole
|
||||
|
||||
name: Optional[str] = None
|
||||
r"""Optional name for the user"""
|
||||
|
||||
Reference in New Issue
Block a user