mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
wip setup
This commit is contained in:
@@ -6,7 +6,7 @@ from openrouter._hooks import HookContext
|
||||
from openrouter.types import OptionalNullable, UNSET
|
||||
from openrouter.utils import get_security_from_env
|
||||
from openrouter.utils.unmarshal_json_response import unmarshal_json_response
|
||||
from typing import Any, Mapping, Optional
|
||||
from typing import Any, List, Mapping, Optional
|
||||
|
||||
|
||||
class Endpoints(BaseSDK):
|
||||
@@ -21,7 +21,7 @@ class Endpoints(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.EndpointsListEndpointsResponse:
|
||||
) -> models.ListEndpointsResponse:
|
||||
r"""List all endpoints for a model
|
||||
|
||||
:param author:
|
||||
@@ -122,7 +122,7 @@ class Endpoints(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.EndpointsListEndpointsResponse:
|
||||
) -> models.ListEndpointsResponse:
|
||||
r"""List all endpoints for a model
|
||||
|
||||
:param author:
|
||||
@@ -221,7 +221,7 @@ class Endpoints(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.ListEndpointsZdrResponse:
|
||||
) -> List[models.PublicEndpoint]:
|
||||
r"""Preview the impact of ZDR on the available endpoints
|
||||
|
||||
:param retries: Override the default retry configuration for this method
|
||||
@@ -305,7 +305,7 @@ class Endpoints(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.ListEndpointsZdrResponse:
|
||||
) -> List[models.PublicEndpoint]:
|
||||
r"""Preview the impact of ZDR on the available endpoints
|
||||
|
||||
:param retries: Override the default retry configuration for this method
|
||||
|
||||
Reference in New Issue
Block a user