mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-02 12:50:48 +08:00
chore: 🐝 Update SDK - Generate 0.9.2 (#205)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
0c735989c1
commit
0f116c9792
@@ -0,0 +1,37 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel
|
||||
from typing import List, Literal, Optional
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
WebFetchPluginID = Literal["web-fetch",]
|
||||
|
||||
|
||||
class WebFetchPluginTypedDict(TypedDict):
|
||||
id: WebFetchPluginID
|
||||
allowed_domains: NotRequired[List[str]]
|
||||
r"""Only fetch from these domains."""
|
||||
blocked_domains: NotRequired[List[str]]
|
||||
r"""Never fetch from these domains."""
|
||||
max_content_tokens: NotRequired[int]
|
||||
r"""Maximum content length in approximate tokens. Content exceeding this limit is truncated."""
|
||||
max_uses: NotRequired[int]
|
||||
r"""Maximum number of web fetches per request. Once exceeded, the tool returns an error."""
|
||||
|
||||
|
||||
class WebFetchPlugin(BaseModel):
|
||||
id: WebFetchPluginID
|
||||
|
||||
allowed_domains: Optional[List[str]] = None
|
||||
r"""Only fetch from these domains."""
|
||||
|
||||
blocked_domains: Optional[List[str]] = None
|
||||
r"""Never fetch from these domains."""
|
||||
|
||||
max_content_tokens: Optional[int] = None
|
||||
r"""Maximum content length in approximate tokens. Content exceeding this limit is truncated."""
|
||||
|
||||
max_uses: Optional[int] = None
|
||||
r"""Maximum number of web fetches per request. Once exceeded, the tool returns an error."""
|
||||
Reference in New Issue
Block a user