mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
fixes
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from openrouter.types import BaseModel, UnrecognizedInt
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Literal, Union
|
||||
from typing_extensions import Annotated, TypedDict
|
||||
|
||||
|
||||
ChainID = Union[
|
||||
Literal[
|
||||
1,
|
||||
137,
|
||||
8453,
|
||||
],
|
||||
UnrecognizedInt,
|
||||
]
|
||||
|
||||
|
||||
class CreateChargeRequestTypedDict(TypedDict):
|
||||
r"""Create a Coinbase charge for crypto payment"""
|
||||
|
||||
amount: float
|
||||
sender: str
|
||||
chain_id: ChainID
|
||||
|
||||
|
||||
class CreateChargeRequest(BaseModel):
|
||||
r"""Create a Coinbase charge for crypto payment"""
|
||||
|
||||
amount: float
|
||||
|
||||
sender: str
|
||||
|
||||
chain_id: Annotated[ChainID, PlainValidator(validate_open_enum(True))]
|
||||
Reference in New Issue
Block a user