mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
feat: regenerate SDK with updated OpenAPI spec
Speakeasy regeneration with latest schema changes including type renames and new server tool models.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .chatcontenttext import ChatContentText, ChatContentTextTypedDict
|
||||
from openrouter.types import BaseModel
|
||||
from typing import List, Literal, Optional, Union
|
||||
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
||||
|
||||
|
||||
ChatSystemMessageRole = Literal["system",]
|
||||
|
||||
|
||||
ChatSystemMessageContentTypedDict = TypeAliasType(
|
||||
"ChatSystemMessageContentTypedDict", Union[str, List[ChatContentTextTypedDict]]
|
||||
)
|
||||
r"""System message content"""
|
||||
|
||||
|
||||
ChatSystemMessageContent = TypeAliasType(
|
||||
"ChatSystemMessageContent", Union[str, List[ChatContentText]]
|
||||
)
|
||||
r"""System message content"""
|
||||
|
||||
|
||||
class ChatSystemMessageTypedDict(TypedDict):
|
||||
r"""System message for setting behavior"""
|
||||
|
||||
role: ChatSystemMessageRole
|
||||
content: ChatSystemMessageContentTypedDict
|
||||
r"""System message content"""
|
||||
name: NotRequired[str]
|
||||
r"""Optional name for the system message"""
|
||||
|
||||
|
||||
class ChatSystemMessage(BaseModel):
|
||||
r"""System message for setting behavior"""
|
||||
|
||||
role: ChatSystemMessageRole
|
||||
|
||||
content: ChatSystemMessageContent
|
||||
r"""System message content"""
|
||||
|
||||
name: Optional[str] = None
|
||||
r"""Optional name for the system message"""
|
||||
Reference in New Issue
Block a user