mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +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
|
||||
|
||||
|
||||
ChatDeveloperMessageRole = Literal["developer",]
|
||||
|
||||
|
||||
ChatDeveloperMessageContentTypedDict = TypeAliasType(
|
||||
"ChatDeveloperMessageContentTypedDict", Union[str, List[ChatContentTextTypedDict]]
|
||||
)
|
||||
r"""Developer message content"""
|
||||
|
||||
|
||||
ChatDeveloperMessageContent = TypeAliasType(
|
||||
"ChatDeveloperMessageContent", Union[str, List[ChatContentText]]
|
||||
)
|
||||
r"""Developer message content"""
|
||||
|
||||
|
||||
class ChatDeveloperMessageTypedDict(TypedDict):
|
||||
r"""Developer message"""
|
||||
|
||||
role: ChatDeveloperMessageRole
|
||||
content: ChatDeveloperMessageContentTypedDict
|
||||
r"""Developer message content"""
|
||||
name: NotRequired[str]
|
||||
r"""Optional name for the developer message"""
|
||||
|
||||
|
||||
class ChatDeveloperMessage(BaseModel):
|
||||
r"""Developer message"""
|
||||
|
||||
role: ChatDeveloperMessageRole
|
||||
|
||||
content: ChatDeveloperMessageContent
|
||||
r"""Developer message content"""
|
||||
|
||||
name: Optional[str] = None
|
||||
r"""Optional name for the developer message"""
|
||||
Reference in New Issue
Block a user