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,34 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel
|
||||
from typing import Literal, Optional
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
DatetimeServerToolType = Literal["openrouter:datetime",]
|
||||
|
||||
|
||||
class DatetimeServerToolParametersTypedDict(TypedDict):
|
||||
timezone: NotRequired[str]
|
||||
r"""IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC."""
|
||||
|
||||
|
||||
class DatetimeServerToolParameters(BaseModel):
|
||||
timezone: Optional[str] = None
|
||||
r"""IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC."""
|
||||
|
||||
|
||||
class DatetimeServerToolTypedDict(TypedDict):
|
||||
r"""OpenRouter built-in server tool: returns the current date and time"""
|
||||
|
||||
type: DatetimeServerToolType
|
||||
parameters: NotRequired[DatetimeServerToolParametersTypedDict]
|
||||
|
||||
|
||||
class DatetimeServerTool(BaseModel):
|
||||
r"""OpenRouter built-in server tool: returns the current date and time"""
|
||||
|
||||
type: DatetimeServerToolType
|
||||
|
||||
parameters: Optional[DatetimeServerToolParameters] = None
|
||||
Reference in New Issue
Block a user