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:
@@ -1,25 +1,21 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .pdfparserengine import PDFParserEngine
|
||||
from .pdfparserengine import PDFParserEngine, PDFParserEngineTypedDict
|
||||
from openrouter.types import BaseModel
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
class PDFParserOptionsTypedDict(TypedDict):
|
||||
r"""Options for PDF parsing."""
|
||||
|
||||
engine: NotRequired[PDFParserEngine]
|
||||
r"""The engine to use for parsing PDF files."""
|
||||
engine: NotRequired[PDFParserEngineTypedDict]
|
||||
r"""The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\"."""
|
||||
|
||||
|
||||
class PDFParserOptions(BaseModel):
|
||||
r"""Options for PDF parsing."""
|
||||
|
||||
engine: Annotated[
|
||||
Optional[PDFParserEngine], PlainValidator(validate_open_enum(False))
|
||||
] = None
|
||||
r"""The engine to use for parsing PDF files."""
|
||||
engine: Optional[PDFParserEngine] = None
|
||||
r"""The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\"."""
|
||||
|
||||
Reference in New Issue
Block a user