mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
feat: fix types and add reasoning_details to chat responses (#27)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .pdfparserengine import PDFParserEngine
|
||||
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
|
||||
|
||||
|
||||
class PDFParserOptionsTypedDict(TypedDict):
|
||||
r"""Options for PDF parsing."""
|
||||
|
||||
engine: NotRequired[PDFParserEngine]
|
||||
r"""The engine to use for parsing PDF files."""
|
||||
|
||||
|
||||
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."""
|
||||
Reference in New Issue
Block a user