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:
@@ -27,11 +27,11 @@ r"""Chat completion message with role-based discrimination"""
|
||||
|
||||
ChatMessages = Annotated[
|
||||
Union[
|
||||
Annotated[ChatSystemMessage, Tag("system")],
|
||||
Annotated[ChatUserMessage, Tag("user")],
|
||||
Annotated[ChatDeveloperMessage, Tag("developer")],
|
||||
Annotated[ChatAssistantMessage, Tag("assistant")],
|
||||
Annotated[ChatDeveloperMessage, Tag("developer")],
|
||||
Annotated[ChatSystemMessage, Tag("system")],
|
||||
Annotated[ChatToolMessage, Tag("tool")],
|
||||
Annotated[ChatUserMessage, Tag("user")],
|
||||
],
|
||||
Discriminator(lambda m: get_discriminator(m, "role", "role")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user