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,38 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .formatjsonobjectconfig import (
|
||||
FormatJSONObjectConfig,
|
||||
FormatJSONObjectConfigTypedDict,
|
||||
)
|
||||
from .formatjsonschemaconfig import (
|
||||
FormatJSONSchemaConfig,
|
||||
FormatJSONSchemaConfigTypedDict,
|
||||
)
|
||||
from .formattextconfig import FormatTextConfig, FormatTextConfigTypedDict
|
||||
from openrouter.utils import get_discriminator
|
||||
from pydantic import Discriminator, Tag
|
||||
from typing import Union
|
||||
from typing_extensions import Annotated, TypeAliasType
|
||||
|
||||
|
||||
FormatsTypedDict = TypeAliasType(
|
||||
"FormatsTypedDict",
|
||||
Union[
|
||||
FormatTextConfigTypedDict,
|
||||
FormatJSONObjectConfigTypedDict,
|
||||
FormatJSONSchemaConfigTypedDict,
|
||||
],
|
||||
)
|
||||
r"""Text response format configuration"""
|
||||
|
||||
|
||||
Formats = Annotated[
|
||||
Union[
|
||||
Annotated[FormatTextConfig, Tag("text")],
|
||||
Annotated[FormatJSONObjectConfig, Tag("json_object")],
|
||||
Annotated[FormatJSONSchemaConfig, Tag("json_schema")],
|
||||
],
|
||||
Discriminator(lambda m: get_discriminator(m, "type", "type")),
|
||||
]
|
||||
r"""Text response format configuration"""
|
||||
Reference in New Issue
Block a user