mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
fixes
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.0.8"
|
||||
__version__: str = "0.0.14"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.753.6"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.0.8 2.753.6 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.0.14 2.753.6 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from .basesdk import BaseSDK
|
||||
from openrouter import errors, models, utils
|
||||
from openrouter import components, errors, operations, utils
|
||||
from openrouter._hooks import HookContext
|
||||
from openrouter.types import OptionalNullable, UNSET
|
||||
from openrouter.utils import get_security_from_env
|
||||
@@ -20,7 +20,7 @@ class Analytics(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> List[models.ActivityItem]:
|
||||
) -> List[components.ActivityItem]:
|
||||
r"""Get user activity grouped by endpoint
|
||||
|
||||
Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
|
||||
@@ -41,7 +41,7 @@ class Analytics(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.GetUserActivityRequest(
|
||||
request = operations.GetUserActivityRequest(
|
||||
date_=date_,
|
||||
)
|
||||
|
||||
@@ -76,7 +76,7 @@ class Analytics(BaseSDK):
|
||||
operation_id="getUserActivity",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -86,7 +86,7 @@ class Analytics(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetUserActivityResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetUserActivityResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
@@ -128,7 +128,7 @@ class Analytics(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> List[models.ActivityItem]:
|
||||
) -> List[components.ActivityItem]:
|
||||
r"""Get user activity grouped by endpoint
|
||||
|
||||
Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
|
||||
@@ -149,7 +149,7 @@ class Analytics(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.GetUserActivityRequest(
|
||||
request = operations.GetUserActivityRequest(
|
||||
date_=date_,
|
||||
)
|
||||
|
||||
@@ -184,7 +184,7 @@ class Analytics(BaseSDK):
|
||||
operation_id="getUserActivity",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -194,7 +194,7 @@ class Analytics(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetUserActivityResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetUserActivityResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
|
||||
+57
-57
@@ -2,7 +2,7 @@
|
||||
|
||||
from .basesdk import BaseSDK
|
||||
from datetime import datetime
|
||||
from openrouter import errors, models, utils
|
||||
from openrouter import components, errors, operations, utils
|
||||
from openrouter._hooks import HookContext
|
||||
from openrouter.types import OptionalNullable, UNSET
|
||||
from openrouter.utils import get_security_from_env
|
||||
@@ -22,7 +22,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> List[models.ListData]:
|
||||
) -> List[operations.ListData]:
|
||||
r"""List API keys
|
||||
|
||||
:param include_disabled: Whether to include disabled API keys in the response
|
||||
@@ -42,7 +42,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.ListRequest(
|
||||
request = operations.ListRequest(
|
||||
include_disabled=include_disabled,
|
||||
offset=offset,
|
||||
)
|
||||
@@ -78,7 +78,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="list",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -88,7 +88,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.ListResponse, http_res)
|
||||
return unmarshal_json_response(operations.ListResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -126,7 +126,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> List[models.ListData]:
|
||||
) -> List[operations.ListData]:
|
||||
r"""List API keys
|
||||
|
||||
:param include_disabled: Whether to include disabled API keys in the response
|
||||
@@ -146,7 +146,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.ListRequest(
|
||||
request = operations.ListRequest(
|
||||
include_disabled=include_disabled,
|
||||
offset=offset,
|
||||
)
|
||||
@@ -182,7 +182,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="list",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -192,7 +192,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.ListResponse, http_res)
|
||||
return unmarshal_json_response(operations.ListResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -226,14 +226,14 @@ class APIKeys(BaseSDK):
|
||||
*,
|
||||
name: str,
|
||||
limit: OptionalNullable[float] = UNSET,
|
||||
limit_reset: OptionalNullable[models.CreateKeysLimitReset] = UNSET,
|
||||
limit_reset: OptionalNullable[operations.CreateKeysLimitReset] = UNSET,
|
||||
include_byok_in_limit: Optional[bool] = None,
|
||||
expires_at: OptionalNullable[datetime] = UNSET,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.CreateKeysData:
|
||||
) -> operations.CreateKeysData:
|
||||
r"""Create a new API key
|
||||
|
||||
:param name: Name for the new API key
|
||||
@@ -256,7 +256,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.CreateKeysRequest(
|
||||
request = operations.CreateKeysRequest(
|
||||
name=name,
|
||||
limit=limit,
|
||||
limit_reset=limit_reset,
|
||||
@@ -278,7 +278,7 @@ class APIKeys(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.CreateKeysRequest
|
||||
request, False, False, "json", operations.CreateKeysRequest
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -298,7 +298,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="createKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -308,7 +308,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "201", "application/json"):
|
||||
return unmarshal_json_response(models.CreateKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.CreateKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
@@ -347,14 +347,14 @@ class APIKeys(BaseSDK):
|
||||
*,
|
||||
name: str,
|
||||
limit: OptionalNullable[float] = UNSET,
|
||||
limit_reset: OptionalNullable[models.CreateKeysLimitReset] = UNSET,
|
||||
limit_reset: OptionalNullable[operations.CreateKeysLimitReset] = UNSET,
|
||||
include_byok_in_limit: Optional[bool] = None,
|
||||
expires_at: OptionalNullable[datetime] = UNSET,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.CreateKeysData:
|
||||
) -> operations.CreateKeysData:
|
||||
r"""Create a new API key
|
||||
|
||||
:param name: Name for the new API key
|
||||
@@ -377,7 +377,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.CreateKeysRequest(
|
||||
request = operations.CreateKeysRequest(
|
||||
name=name,
|
||||
limit=limit,
|
||||
limit_reset=limit_reset,
|
||||
@@ -399,7 +399,7 @@ class APIKeys(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.CreateKeysRequest
|
||||
request, False, False, "json", operations.CreateKeysRequest
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -419,7 +419,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="createKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -429,7 +429,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "201", "application/json"):
|
||||
return unmarshal_json_response(models.CreateKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.CreateKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
@@ -470,13 +470,13 @@ class APIKeys(BaseSDK):
|
||||
name: Optional[str] = None,
|
||||
disabled: Optional[bool] = None,
|
||||
limit: OptionalNullable[float] = UNSET,
|
||||
limit_reset: OptionalNullable[models.UpdateKeysLimitReset] = UNSET,
|
||||
limit_reset: OptionalNullable[operations.UpdateKeysLimitReset] = UNSET,
|
||||
include_byok_in_limit: Optional[bool] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.UpdateKeysData:
|
||||
) -> operations.UpdateKeysData:
|
||||
r"""Update an API key
|
||||
|
||||
:param hash: The hash identifier of the API key to update
|
||||
@@ -500,9 +500,9 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.UpdateKeysRequest(
|
||||
request = operations.UpdateKeysRequest(
|
||||
hash=hash,
|
||||
body=models.UpdateKeysRequestBody(
|
||||
body=operations.UpdateKeysRequestBody(
|
||||
name=name,
|
||||
disabled=disabled,
|
||||
limit=limit,
|
||||
@@ -525,7 +525,7 @@ class APIKeys(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request.body, False, False, "json", models.UpdateKeysRequestBody
|
||||
request.body, False, False, "json", operations.UpdateKeysRequestBody
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -545,7 +545,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="updateKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -555,7 +555,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.UpdateKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.UpdateKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
@@ -601,13 +601,13 @@ class APIKeys(BaseSDK):
|
||||
name: Optional[str] = None,
|
||||
disabled: Optional[bool] = None,
|
||||
limit: OptionalNullable[float] = UNSET,
|
||||
limit_reset: OptionalNullable[models.UpdateKeysLimitReset] = UNSET,
|
||||
limit_reset: OptionalNullable[operations.UpdateKeysLimitReset] = UNSET,
|
||||
include_byok_in_limit: Optional[bool] = None,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.UpdateKeysData:
|
||||
) -> operations.UpdateKeysData:
|
||||
r"""Update an API key
|
||||
|
||||
:param hash: The hash identifier of the API key to update
|
||||
@@ -631,9 +631,9 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.UpdateKeysRequest(
|
||||
request = operations.UpdateKeysRequest(
|
||||
hash=hash,
|
||||
body=models.UpdateKeysRequestBody(
|
||||
body=operations.UpdateKeysRequestBody(
|
||||
name=name,
|
||||
disabled=disabled,
|
||||
limit=limit,
|
||||
@@ -656,7 +656,7 @@ class APIKeys(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request.body, False, False, "json", models.UpdateKeysRequestBody
|
||||
request.body, False, False, "json", operations.UpdateKeysRequestBody
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -676,7 +676,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="updateKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -686,7 +686,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.UpdateKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.UpdateKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.BadRequestResponseErrorData, http_res
|
||||
@@ -733,7 +733,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.DeleteKeysResponse:
|
||||
) -> operations.DeleteKeysResponse:
|
||||
r"""Delete an API key
|
||||
|
||||
:param hash: The hash identifier of the API key to delete
|
||||
@@ -752,7 +752,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.DeleteKeysRequest(
|
||||
request = operations.DeleteKeysRequest(
|
||||
hash=hash,
|
||||
)
|
||||
|
||||
@@ -787,7 +787,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="deleteKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -797,7 +797,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.DeleteKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.DeleteKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -839,7 +839,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.DeleteKeysResponse:
|
||||
) -> operations.DeleteKeysResponse:
|
||||
r"""Delete an API key
|
||||
|
||||
:param hash: The hash identifier of the API key to delete
|
||||
@@ -858,7 +858,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.DeleteKeysRequest(
|
||||
request = operations.DeleteKeysRequest(
|
||||
hash=hash,
|
||||
)
|
||||
|
||||
@@ -893,7 +893,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="deleteKeys",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -903,7 +903,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.DeleteKeysResponse, http_res)
|
||||
return unmarshal_json_response(operations.DeleteKeysResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -945,7 +945,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.GetKeyData:
|
||||
) -> operations.GetKeyData:
|
||||
r"""Get a single API key
|
||||
|
||||
:param hash: The hash identifier of the API key to retrieve
|
||||
@@ -964,7 +964,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.GetKeyRequest(
|
||||
request = operations.GetKeyRequest(
|
||||
hash=hash,
|
||||
)
|
||||
|
||||
@@ -999,7 +999,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="getKey",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -1009,7 +1009,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetKeyResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetKeyResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -1051,7 +1051,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.GetKeyData:
|
||||
) -> operations.GetKeyData:
|
||||
r"""Get a single API key
|
||||
|
||||
:param hash: The hash identifier of the API key to retrieve
|
||||
@@ -1070,7 +1070,7 @@ class APIKeys(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.GetKeyRequest(
|
||||
request = operations.GetKeyRequest(
|
||||
hash=hash,
|
||||
)
|
||||
|
||||
@@ -1105,7 +1105,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="getKey",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -1115,7 +1115,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetKeyResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetKeyResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -1156,7 +1156,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.GetCurrentKeyData:
|
||||
) -> operations.GetCurrentKeyData:
|
||||
r"""Get current API key
|
||||
|
||||
Get information on the API key associated with the current authentication session
|
||||
@@ -1206,7 +1206,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="getCurrentKey",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -1216,7 +1216,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetCurrentKeyResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetCurrentKeyResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
@@ -1247,7 +1247,7 @@ class APIKeys(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.GetCurrentKeyData:
|
||||
) -> operations.GetCurrentKeyData:
|
||||
r"""Get current API key
|
||||
|
||||
Get information on the API key associated with the current authentication session
|
||||
@@ -1297,7 +1297,7 @@ class APIKeys(BaseSDK):
|
||||
operation_id="getCurrentKey",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -1307,7 +1307,7 @@ class APIKeys(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.GetCurrentKeyResponse, http_res)
|
||||
return unmarshal_json_response(operations.GetCurrentKeyResponse, http_res)
|
||||
if utils.match_response(http_res, "401", "application/json"):
|
||||
response_data = unmarshal_json_response(
|
||||
errors.UnauthorizedResponseErrorData, http_res
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
from .sdkconfiguration import SDKConfiguration
|
||||
import httpx
|
||||
from openrouter import errors, models, utils
|
||||
from openrouter import components, errors, utils
|
||||
from openrouter._hooks import (
|
||||
AfterErrorContext,
|
||||
AfterSuccessContext,
|
||||
@@ -175,7 +175,7 @@ class BaseSDK:
|
||||
if security is not None:
|
||||
if callable(security):
|
||||
security = security()
|
||||
security = utils.get_security_from_env(security, models.Security)
|
||||
security = utils.get_security_from_env(security, components.Security)
|
||||
if security is not None:
|
||||
security_headers, security_query_params = utils.get_security(security)
|
||||
headers = {**headers, **security_headers}
|
||||
|
||||
+101
-81
@@ -2,7 +2,7 @@
|
||||
|
||||
from .basesdk import BaseSDK
|
||||
from enum import Enum
|
||||
from openrouter import errors, models, utils
|
||||
from openrouter import components, errors, operations, utils
|
||||
from openrouter._hooks import HookContext
|
||||
from openrouter.types import OptionalNullable, UNSET
|
||||
from openrouter.utils import eventstreaming, get_security_from_env
|
||||
@@ -20,7 +20,7 @@ class Chat(BaseSDK):
|
||||
def send(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -31,30 +31,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Union[Literal[False], None] = None,
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -63,7 +65,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.ChatResponse:
|
||||
) -> components.ChatResponse:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -101,7 +103,7 @@ class Chat(BaseSDK):
|
||||
def send(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -112,30 +114,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Literal[True],
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -144,7 +148,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> eventstreaming.EventStream[models.ChatStreamingResponseChunkData]:
|
||||
) -> eventstreaming.EventStream[components.ChatStreamingResponseChunkData]:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -181,7 +185,7 @@ class Chat(BaseSDK):
|
||||
def send(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -192,30 +196,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -224,7 +230,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.SendChatCompletionRequestResponse:
|
||||
) -> operations.SendChatCompletionRequestResponse:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -267,8 +273,8 @@ class Chat(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.ChatGenerationParams(
|
||||
messages=utils.get_pydantic_model(messages, List[models.Message]),
|
||||
request = components.ChatGenerationParams(
|
||||
messages=utils.get_pydantic_model(messages, List[components.Message]),
|
||||
model=model,
|
||||
models=models,
|
||||
frequency_penalty=frequency_penalty,
|
||||
@@ -279,21 +285,23 @@ class Chat(BaseSDK):
|
||||
max_tokens=max_tokens,
|
||||
metadata=metadata,
|
||||
presence_penalty=presence_penalty,
|
||||
reasoning=utils.get_pydantic_model(reasoning, Optional[models.Reasoning]),
|
||||
reasoning=utils.get_pydantic_model(
|
||||
reasoning, Optional[components.Reasoning]
|
||||
),
|
||||
response_format=utils.get_pydantic_model(
|
||||
response_format,
|
||||
Optional[models.ChatGenerationParamsResponseFormatUnion],
|
||||
Optional[components.ChatGenerationParamsResponseFormatUnion],
|
||||
),
|
||||
seed=seed,
|
||||
stop=stop,
|
||||
stream=stream,
|
||||
stream_options=utils.get_pydantic_model(
|
||||
stream_options, OptionalNullable[models.ChatStreamOptions]
|
||||
stream_options, OptionalNullable[components.ChatStreamOptions]
|
||||
),
|
||||
temperature=temperature,
|
||||
tool_choice=tool_choice,
|
||||
tools=utils.get_pydantic_model(
|
||||
tools, Optional[List[models.ToolDefinitionJSON]]
|
||||
tools, Optional[List[components.ToolDefinitionJSON]]
|
||||
),
|
||||
top_p=top_p,
|
||||
user=user,
|
||||
@@ -313,7 +321,7 @@ class Chat(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.ChatGenerationParams
|
||||
request, False, False, "json", components.ChatGenerationParams
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -333,7 +341,7 @@ class Chat(BaseSDK):
|
||||
operation_id="sendChatCompletionRequest",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -345,12 +353,14 @@ class Chat(BaseSDK):
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
return unmarshal_json_response(models.ChatResponse, http_res, http_res_text)
|
||||
return unmarshal_json_response(
|
||||
components.ChatResponse, http_res, http_res_text
|
||||
)
|
||||
if utils.match_response(http_res, "200", "text/event-stream"):
|
||||
return eventstreaming.EventStream(
|
||||
http_res,
|
||||
lambda raw: utils.unmarshal_json(
|
||||
raw, models.ChatStreamingResponseChunk
|
||||
raw, components.ChatStreamingResponseChunk
|
||||
).data,
|
||||
sentinel="[DONE]",
|
||||
client_ref=self,
|
||||
@@ -387,7 +397,7 @@ class Chat(BaseSDK):
|
||||
async def send_async(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -398,30 +408,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Union[Literal[False], None] = None,
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -430,7 +442,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.ChatResponse:
|
||||
) -> components.ChatResponse:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -468,7 +480,7 @@ class Chat(BaseSDK):
|
||||
async def send_async(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -479,30 +491,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Literal[True],
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -511,7 +525,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> eventstreaming.EventStreamAsync[models.ChatStreamingResponseChunkData]:
|
||||
) -> eventstreaming.EventStreamAsync[components.ChatStreamingResponseChunkData]:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -548,7 +562,7 @@ class Chat(BaseSDK):
|
||||
async def send_async(
|
||||
self,
|
||||
*,
|
||||
messages: Union[List[models.Message], List[models.MessageTypedDict]],
|
||||
messages: Union[List[components.Message], List[components.MessageTypedDict]],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
frequency_penalty: OptionalNullable[float] = UNSET,
|
||||
@@ -559,30 +573,32 @@ class Chat(BaseSDK):
|
||||
max_tokens: OptionalNullable[float] = UNSET,
|
||||
metadata: Optional[Dict[str, str]] = None,
|
||||
presence_penalty: OptionalNullable[float] = UNSET,
|
||||
reasoning: Optional[Union[models.Reasoning, models.ReasoningTypedDict]] = None,
|
||||
reasoning: Optional[
|
||||
Union[components.Reasoning, components.ReasoningTypedDict]
|
||||
] = None,
|
||||
response_format: Optional[
|
||||
Union[
|
||||
models.ChatGenerationParamsResponseFormatUnion,
|
||||
models.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
components.ChatGenerationParamsResponseFormatUnion,
|
||||
components.ChatGenerationParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = None,
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models.ChatGenerationParamsStop,
|
||||
models.ChatGenerationParamsStopTypedDict,
|
||||
components.ChatGenerationParamsStop,
|
||||
components.ChatGenerationParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
stream_options: OptionalNullable[
|
||||
Union[models.ChatStreamOptions, models.ChatStreamOptionsTypedDict]
|
||||
Union[components.ChatStreamOptions, components.ChatStreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
tool_choice: Optional[Any] = None,
|
||||
tools: Optional[
|
||||
Union[
|
||||
List[models.ToolDefinitionJSON],
|
||||
List[models.ToolDefinitionJSONTypedDict],
|
||||
List[components.ToolDefinitionJSON],
|
||||
List[components.ToolDefinitionJSONTypedDict],
|
||||
]
|
||||
] = None,
|
||||
top_p: OptionalNullable[float] = UNSET,
|
||||
@@ -591,7 +607,7 @@ class Chat(BaseSDK):
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.SendChatCompletionRequestResponse:
|
||||
) -> operations.SendChatCompletionRequestResponse:
|
||||
r"""Create a chat completion
|
||||
|
||||
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
|
||||
@@ -634,8 +650,8 @@ class Chat(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.ChatGenerationParams(
|
||||
messages=utils.get_pydantic_model(messages, List[models.Message]),
|
||||
request = components.ChatGenerationParams(
|
||||
messages=utils.get_pydantic_model(messages, List[components.Message]),
|
||||
model=model,
|
||||
models=models,
|
||||
frequency_penalty=frequency_penalty,
|
||||
@@ -646,21 +662,23 @@ class Chat(BaseSDK):
|
||||
max_tokens=max_tokens,
|
||||
metadata=metadata,
|
||||
presence_penalty=presence_penalty,
|
||||
reasoning=utils.get_pydantic_model(reasoning, Optional[models.Reasoning]),
|
||||
reasoning=utils.get_pydantic_model(
|
||||
reasoning, Optional[components.Reasoning]
|
||||
),
|
||||
response_format=utils.get_pydantic_model(
|
||||
response_format,
|
||||
Optional[models.ChatGenerationParamsResponseFormatUnion],
|
||||
Optional[components.ChatGenerationParamsResponseFormatUnion],
|
||||
),
|
||||
seed=seed,
|
||||
stop=stop,
|
||||
stream=stream,
|
||||
stream_options=utils.get_pydantic_model(
|
||||
stream_options, OptionalNullable[models.ChatStreamOptions]
|
||||
stream_options, OptionalNullable[components.ChatStreamOptions]
|
||||
),
|
||||
temperature=temperature,
|
||||
tool_choice=tool_choice,
|
||||
tools=utils.get_pydantic_model(
|
||||
tools, Optional[List[models.ToolDefinitionJSON]]
|
||||
tools, Optional[List[components.ToolDefinitionJSON]]
|
||||
),
|
||||
top_p=top_p,
|
||||
user=user,
|
||||
@@ -680,7 +698,7 @@ class Chat(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.ChatGenerationParams
|
||||
request, False, False, "json", components.ChatGenerationParams
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -700,7 +718,7 @@ class Chat(BaseSDK):
|
||||
operation_id="sendChatCompletionRequest",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -712,12 +730,14 @@ class Chat(BaseSDK):
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
return unmarshal_json_response(models.ChatResponse, http_res, http_res_text)
|
||||
return unmarshal_json_response(
|
||||
components.ChatResponse, http_res, http_res_text
|
||||
)
|
||||
if utils.match_response(http_res, "200", "text/event-stream"):
|
||||
return eventstreaming.EventStreamAsync(
|
||||
http_res,
|
||||
lambda raw: utils.unmarshal_json(
|
||||
raw, models.ChatStreamingResponseChunk
|
||||
raw, components.ChatStreamingResponseChunk
|
||||
).data,
|
||||
sentinel="[DONE]",
|
||||
client_ref=self,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from .basesdk import BaseSDK
|
||||
from openrouter import errors, models, utils
|
||||
from openrouter import components, errors, utils
|
||||
from openrouter._hooks import HookContext
|
||||
from openrouter.models import completioncreateparams as models_completioncreateparams
|
||||
from openrouter.types import OptionalNullable, UNSET
|
||||
from openrouter.utils import get_security_from_env
|
||||
from openrouter.utils.unmarshal_json_response import unmarshal_json_response
|
||||
@@ -14,10 +13,7 @@ class Completions(BaseSDK):
|
||||
def generate(
|
||||
self,
|
||||
*,
|
||||
prompt: Union[
|
||||
models_completioncreateparams.Prompt,
|
||||
models_completioncreateparams.PromptTypedDict,
|
||||
],
|
||||
prompt: Union[components.Prompt, components.PromptTypedDict],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
best_of: OptionalNullable[int] = UNSET,
|
||||
@@ -31,16 +27,13 @@ class Completions(BaseSDK):
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.CompletionCreateParamsStop,
|
||||
models_completioncreateparams.CompletionCreateParamsStopTypedDict,
|
||||
components.CompletionCreateParamsStop,
|
||||
components.CompletionCreateParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
stream_options: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.StreamOptions,
|
||||
models_completioncreateparams.StreamOptionsTypedDict,
|
||||
]
|
||||
Union[components.StreamOptions, components.StreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
suffix: OptionalNullable[str] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
@@ -49,15 +42,15 @@ class Completions(BaseSDK):
|
||||
metadata: OptionalNullable[Dict[str, str]] = UNSET,
|
||||
response_format: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.CompletionCreateParamsResponseFormatUnion,
|
||||
models_completioncreateparams.CompletionCreateParamsResponseFormatUnionTypedDict,
|
||||
components.CompletionCreateParamsResponseFormatUnion,
|
||||
components.CompletionCreateParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.CompletionResponse:
|
||||
) -> components.CompletionResponse:
|
||||
r"""Create a completion
|
||||
|
||||
Creates a completion for the provided prompt and parameters. Supports both streaming and non-streaming modes.
|
||||
@@ -98,7 +91,7 @@ class Completions(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.CompletionCreateParams(
|
||||
request = components.CompletionCreateParams(
|
||||
model=model,
|
||||
models=models,
|
||||
prompt=prompt,
|
||||
@@ -114,7 +107,7 @@ class Completions(BaseSDK):
|
||||
stop=stop,
|
||||
stream=stream,
|
||||
stream_options=utils.get_pydantic_model(
|
||||
stream_options, OptionalNullable[models.StreamOptions]
|
||||
stream_options, OptionalNullable[components.StreamOptions]
|
||||
),
|
||||
suffix=suffix,
|
||||
temperature=temperature,
|
||||
@@ -123,7 +116,7 @@ class Completions(BaseSDK):
|
||||
metadata=metadata,
|
||||
response_format=utils.get_pydantic_model(
|
||||
response_format,
|
||||
OptionalNullable[models.CompletionCreateParamsResponseFormatUnion],
|
||||
OptionalNullable[components.CompletionCreateParamsResponseFormatUnion],
|
||||
),
|
||||
)
|
||||
|
||||
@@ -141,7 +134,7 @@ class Completions(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.CompletionCreateParams
|
||||
request, False, False, "json", components.CompletionCreateParams
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -161,7 +154,7 @@ class Completions(BaseSDK):
|
||||
operation_id="createCompletions",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -171,7 +164,7 @@ class Completions(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.CompletionResponse, http_res)
|
||||
return unmarshal_json_response(components.CompletionResponse, http_res)
|
||||
if utils.match_response(http_res, ["400", "401", "429"], "application/json"):
|
||||
response_data = unmarshal_json_response(errors.ChatErrorData, http_res)
|
||||
raise errors.ChatError(response_data, http_res)
|
||||
@@ -194,10 +187,7 @@ class Completions(BaseSDK):
|
||||
async def generate_async(
|
||||
self,
|
||||
*,
|
||||
prompt: Union[
|
||||
models_completioncreateparams.Prompt,
|
||||
models_completioncreateparams.PromptTypedDict,
|
||||
],
|
||||
prompt: Union[components.Prompt, components.PromptTypedDict],
|
||||
model: Optional[str] = None,
|
||||
models: Optional[List[str]] = None,
|
||||
best_of: OptionalNullable[int] = UNSET,
|
||||
@@ -211,16 +201,13 @@ class Completions(BaseSDK):
|
||||
seed: OptionalNullable[int] = UNSET,
|
||||
stop: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.CompletionCreateParamsStop,
|
||||
models_completioncreateparams.CompletionCreateParamsStopTypedDict,
|
||||
components.CompletionCreateParamsStop,
|
||||
components.CompletionCreateParamsStopTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
stream: Optional[bool] = False,
|
||||
stream_options: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.StreamOptions,
|
||||
models_completioncreateparams.StreamOptionsTypedDict,
|
||||
]
|
||||
Union[components.StreamOptions, components.StreamOptionsTypedDict]
|
||||
] = UNSET,
|
||||
suffix: OptionalNullable[str] = UNSET,
|
||||
temperature: OptionalNullable[float] = UNSET,
|
||||
@@ -229,15 +216,15 @@ class Completions(BaseSDK):
|
||||
metadata: OptionalNullable[Dict[str, str]] = UNSET,
|
||||
response_format: OptionalNullable[
|
||||
Union[
|
||||
models_completioncreateparams.CompletionCreateParamsResponseFormatUnion,
|
||||
models_completioncreateparams.CompletionCreateParamsResponseFormatUnionTypedDict,
|
||||
components.CompletionCreateParamsResponseFormatUnion,
|
||||
components.CompletionCreateParamsResponseFormatUnionTypedDict,
|
||||
]
|
||||
] = UNSET,
|
||||
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
||||
server_url: Optional[str] = None,
|
||||
timeout_ms: Optional[int] = None,
|
||||
http_headers: Optional[Mapping[str, str]] = None,
|
||||
) -> models.CompletionResponse:
|
||||
) -> components.CompletionResponse:
|
||||
r"""Create a completion
|
||||
|
||||
Creates a completion for the provided prompt and parameters. Supports both streaming and non-streaming modes.
|
||||
@@ -278,7 +265,7 @@ class Completions(BaseSDK):
|
||||
else:
|
||||
base_url = self._get_url(base_url, url_variables)
|
||||
|
||||
request = models.CompletionCreateParams(
|
||||
request = components.CompletionCreateParams(
|
||||
model=model,
|
||||
models=models,
|
||||
prompt=prompt,
|
||||
@@ -294,7 +281,7 @@ class Completions(BaseSDK):
|
||||
stop=stop,
|
||||
stream=stream,
|
||||
stream_options=utils.get_pydantic_model(
|
||||
stream_options, OptionalNullable[models.StreamOptions]
|
||||
stream_options, OptionalNullable[components.StreamOptions]
|
||||
),
|
||||
suffix=suffix,
|
||||
temperature=temperature,
|
||||
@@ -303,7 +290,7 @@ class Completions(BaseSDK):
|
||||
metadata=metadata,
|
||||
response_format=utils.get_pydantic_model(
|
||||
response_format,
|
||||
OptionalNullable[models.CompletionCreateParamsResponseFormatUnion],
|
||||
OptionalNullable[components.CompletionCreateParamsResponseFormatUnion],
|
||||
),
|
||||
)
|
||||
|
||||
@@ -321,7 +308,7 @@ class Completions(BaseSDK):
|
||||
http_headers=http_headers,
|
||||
security=self.sdk_configuration.security,
|
||||
get_serialized_body=lambda: utils.serialize_request_body(
|
||||
request, False, False, "json", models.CompletionCreateParams
|
||||
request, False, False, "json", components.CompletionCreateParams
|
||||
),
|
||||
timeout_ms=timeout_ms,
|
||||
)
|
||||
@@ -341,7 +328,7 @@ class Completions(BaseSDK):
|
||||
operation_id="createCompletions",
|
||||
oauth2_scopes=None,
|
||||
security_source=get_security_from_env(
|
||||
self.sdk_configuration.security, models.Security
|
||||
self.sdk_configuration.security, components.Security
|
||||
),
|
||||
),
|
||||
request=req,
|
||||
@@ -351,7 +338,7 @@ class Completions(BaseSDK):
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/json"):
|
||||
return unmarshal_json_response(models.CompletionResponse, http_res)
|
||||
return unmarshal_json_response(components.CompletionResponse, http_res)
|
||||
if utils.match_response(http_res, ["400", "401", "429"], "application/json"):
|
||||
response_data = unmarshal_json_response(errors.ChatErrorData, http_res)
|
||||
raise errors.ChatError(response_data, http_res)
|
||||
|
||||
@@ -141,155 +141,23 @@ if TYPE_CHECKING:
|
||||
from .completionlogprobs import CompletionLogprobs, CompletionLogprobsTypedDict
|
||||
from .completionresponse import CompletionResponse, CompletionResponseTypedDict
|
||||
from .completionusage import CompletionUsage, CompletionUsageTypedDict
|
||||
from .createauthkeyscodeop import (
|
||||
CreateAuthKeysCodeCodeChallengeMethod,
|
||||
CreateAuthKeysCodeData,
|
||||
CreateAuthKeysCodeDataTypedDict,
|
||||
CreateAuthKeysCodeRequest,
|
||||
CreateAuthKeysCodeRequestTypedDict,
|
||||
CreateAuthKeysCodeResponse,
|
||||
CreateAuthKeysCodeResponseTypedDict,
|
||||
)
|
||||
from .createchargerequest import (
|
||||
ChainID,
|
||||
CreateChargeRequest,
|
||||
CreateChargeRequestTypedDict,
|
||||
)
|
||||
from .createcoinbasechargeop import (
|
||||
CallData,
|
||||
CallDataTypedDict,
|
||||
CreateCoinbaseChargeData,
|
||||
CreateCoinbaseChargeDataTypedDict,
|
||||
CreateCoinbaseChargeResponse,
|
||||
CreateCoinbaseChargeResponseTypedDict,
|
||||
CreateCoinbaseChargeSecurity,
|
||||
CreateCoinbaseChargeSecurityTypedDict,
|
||||
Metadata,
|
||||
MetadataTypedDict,
|
||||
TransferIntent,
|
||||
TransferIntentTypedDict,
|
||||
Web3Data,
|
||||
Web3DataTypedDict,
|
||||
)
|
||||
from .createembeddingsop import (
|
||||
CreateEmbeddingsData,
|
||||
CreateEmbeddingsDataCollection,
|
||||
CreateEmbeddingsDataTypedDict,
|
||||
CreateEmbeddingsIgnore,
|
||||
CreateEmbeddingsIgnoreTypedDict,
|
||||
CreateEmbeddingsMaxPrice,
|
||||
CreateEmbeddingsMaxPriceTypedDict,
|
||||
CreateEmbeddingsObject,
|
||||
CreateEmbeddingsOnly,
|
||||
CreateEmbeddingsOnlyTypedDict,
|
||||
CreateEmbeddingsOrder,
|
||||
CreateEmbeddingsOrderTypedDict,
|
||||
CreateEmbeddingsProvider,
|
||||
CreateEmbeddingsProviderTypedDict,
|
||||
CreateEmbeddingsRequest,
|
||||
CreateEmbeddingsRequestTypedDict,
|
||||
CreateEmbeddingsResponse,
|
||||
CreateEmbeddingsResponseBody,
|
||||
CreateEmbeddingsResponseBodyTypedDict,
|
||||
CreateEmbeddingsResponseTypedDict,
|
||||
CreateEmbeddingsSort,
|
||||
Embedding,
|
||||
EmbeddingTypedDict,
|
||||
EncodingFormat,
|
||||
EncodingFormatBase64,
|
||||
EncodingFormatFloat,
|
||||
EncodingFormatTypedDict,
|
||||
Input,
|
||||
InputTypedDict,
|
||||
ObjectEmbedding,
|
||||
Usage,
|
||||
UsageTypedDict,
|
||||
)
|
||||
from .createkeysop import (
|
||||
CreateKeysData,
|
||||
CreateKeysDataTypedDict,
|
||||
CreateKeysLimitReset,
|
||||
CreateKeysRequest,
|
||||
CreateKeysRequestTypedDict,
|
||||
CreateKeysResponse,
|
||||
CreateKeysResponseTypedDict,
|
||||
)
|
||||
from .createresponsesop import (
|
||||
CreateResponsesResponse,
|
||||
CreateResponsesResponseBody,
|
||||
CreateResponsesResponseBodyTypedDict,
|
||||
CreateResponsesResponseTypedDict,
|
||||
)
|
||||
from .defaultparameters import DefaultParameters, DefaultParametersTypedDict
|
||||
from .deletekeysop import (
|
||||
DeleteKeysRequest,
|
||||
DeleteKeysRequestTypedDict,
|
||||
DeleteKeysResponse,
|
||||
DeleteKeysResponseTypedDict,
|
||||
)
|
||||
from .edgenetworktimeoutresponseerrordata import (
|
||||
EdgeNetworkTimeoutResponseErrorData,
|
||||
EdgeNetworkTimeoutResponseErrorDataTypedDict,
|
||||
)
|
||||
from .endpointstatus import EndpointStatus
|
||||
from .exchangeauthcodeforapikeyop import (
|
||||
ExchangeAuthCodeForAPIKeyCodeChallengeMethod,
|
||||
ExchangeAuthCodeForAPIKeyRequest,
|
||||
ExchangeAuthCodeForAPIKeyRequestTypedDict,
|
||||
ExchangeAuthCodeForAPIKeyResponse,
|
||||
ExchangeAuthCodeForAPIKeyResponseTypedDict,
|
||||
)
|
||||
from .filecitation import FileCitation, FileCitationType, FileCitationTypedDict
|
||||
from .filepath import FilePath, FilePathType, FilePathTypedDict
|
||||
from .forbiddenresponseerrordata import (
|
||||
ForbiddenResponseErrorData,
|
||||
ForbiddenResponseErrorDataTypedDict,
|
||||
)
|
||||
from .getcreditsop import GetCreditsResponse, GetCreditsResponseTypedDict
|
||||
from .getcurrentkeyop import (
|
||||
GetCurrentKeyData,
|
||||
GetCurrentKeyDataTypedDict,
|
||||
GetCurrentKeyResponse,
|
||||
GetCurrentKeyResponseTypedDict,
|
||||
RateLimit,
|
||||
RateLimitTypedDict,
|
||||
)
|
||||
from .getgenerationop import (
|
||||
APIType,
|
||||
GetGenerationData,
|
||||
GetGenerationDataTypedDict,
|
||||
GetGenerationRequest,
|
||||
GetGenerationRequestTypedDict,
|
||||
GetGenerationResponse,
|
||||
GetGenerationResponseTypedDict,
|
||||
)
|
||||
from .getkeyop import (
|
||||
GetKeyData,
|
||||
GetKeyDataTypedDict,
|
||||
GetKeyRequest,
|
||||
GetKeyRequestTypedDict,
|
||||
GetKeyResponse,
|
||||
GetKeyResponseTypedDict,
|
||||
)
|
||||
from .getmodelsop import GetModelsRequest, GetModelsRequestTypedDict
|
||||
from .getparametersop import (
|
||||
GetParametersData,
|
||||
GetParametersDataTypedDict,
|
||||
GetParametersProvider,
|
||||
GetParametersRequest,
|
||||
GetParametersRequestTypedDict,
|
||||
GetParametersResponse,
|
||||
GetParametersResponseTypedDict,
|
||||
GetParametersSecurity,
|
||||
GetParametersSecurityTypedDict,
|
||||
SupportedParameter,
|
||||
)
|
||||
from .getuseractivityop import (
|
||||
GetUserActivityRequest,
|
||||
GetUserActivityRequestTypedDict,
|
||||
GetUserActivityResponse,
|
||||
GetUserActivityResponseTypedDict,
|
||||
)
|
||||
from .imagegenerationstatus import ImageGenerationStatus
|
||||
from .inputmodality import InputModality
|
||||
from .instructtype import InstructType
|
||||
@@ -298,12 +166,6 @@ if TYPE_CHECKING:
|
||||
InternalServerResponseErrorDataTypedDict,
|
||||
)
|
||||
from .jsonschemaconfig import JSONSchemaConfig, JSONSchemaConfigTypedDict
|
||||
from .listendpointsop import (
|
||||
EndpointsListEndpointsResponse,
|
||||
EndpointsListEndpointsResponseTypedDict,
|
||||
ListEndpointsRequest,
|
||||
ListEndpointsRequestTypedDict,
|
||||
)
|
||||
from .listendpointsresponse import (
|
||||
Architecture,
|
||||
ArchitectureTypedDict,
|
||||
@@ -311,28 +173,6 @@ if TYPE_CHECKING:
|
||||
ListEndpointsResponseTypedDict,
|
||||
Tokenizer,
|
||||
)
|
||||
from .listendpointszdrop import (
|
||||
ListEndpointsZdrResponse,
|
||||
ListEndpointsZdrResponseTypedDict,
|
||||
)
|
||||
from .listmodelsuserop import (
|
||||
ListModelsUserSecurity,
|
||||
ListModelsUserSecurityTypedDict,
|
||||
)
|
||||
from .listop import (
|
||||
ListData,
|
||||
ListDataTypedDict,
|
||||
ListRequest,
|
||||
ListRequestTypedDict,
|
||||
ListResponse,
|
||||
ListResponseTypedDict,
|
||||
)
|
||||
from .listprovidersop import (
|
||||
ListProvidersData,
|
||||
ListProvidersDataTypedDict,
|
||||
ListProvidersResponse,
|
||||
ListProvidersResponseTypedDict,
|
||||
)
|
||||
from .message import (
|
||||
Message,
|
||||
MessageContent,
|
||||
@@ -887,10 +727,6 @@ if TYPE_CHECKING:
|
||||
ResponseTextConfigVerbosity,
|
||||
)
|
||||
from .security import Security, SecurityTypedDict
|
||||
from .sendchatcompletionrequestop import (
|
||||
SendChatCompletionRequestResponse,
|
||||
SendChatCompletionRequestResponseTypedDict,
|
||||
)
|
||||
from .serviceunavailableresponseerrordata import (
|
||||
ServiceUnavailableResponseErrorData,
|
||||
ServiceUnavailableResponseErrorDataTypedDict,
|
||||
@@ -927,17 +763,6 @@ if TYPE_CHECKING:
|
||||
UnprocessableEntityResponseErrorData,
|
||||
UnprocessableEntityResponseErrorDataTypedDict,
|
||||
)
|
||||
from .updatekeysop import (
|
||||
UpdateKeysData,
|
||||
UpdateKeysDataTypedDict,
|
||||
UpdateKeysLimitReset,
|
||||
UpdateKeysRequest,
|
||||
UpdateKeysRequestBody,
|
||||
UpdateKeysRequestBodyTypedDict,
|
||||
UpdateKeysRequestTypedDict,
|
||||
UpdateKeysResponse,
|
||||
UpdateKeysResponseTypedDict,
|
||||
)
|
||||
from .urlcitation import URLCitation, URLCitationType, URLCitationTypedDict
|
||||
from .usermessage import (
|
||||
UserMessage,
|
||||
@@ -953,7 +778,6 @@ if TYPE_CHECKING:
|
||||
from .websearchstatus import WebSearchStatus
|
||||
|
||||
__all__ = [
|
||||
"APIType",
|
||||
"ActivityItem",
|
||||
"ActivityItemTypedDict",
|
||||
"Architecture",
|
||||
@@ -966,8 +790,6 @@ __all__ = [
|
||||
"BadGatewayResponseErrorDataTypedDict",
|
||||
"BadRequestResponseErrorData",
|
||||
"BadRequestResponseErrorDataTypedDict",
|
||||
"CallData",
|
||||
"CallDataTypedDict",
|
||||
"ChainID",
|
||||
"ChatCompletionFinishReason",
|
||||
"ChatErrorError",
|
||||
@@ -1057,78 +879,16 @@ __all__ = [
|
||||
"CompletionUsageTypedDict",
|
||||
"CostDetails",
|
||||
"CostDetailsTypedDict",
|
||||
"CreateAuthKeysCodeCodeChallengeMethod",
|
||||
"CreateAuthKeysCodeData",
|
||||
"CreateAuthKeysCodeDataTypedDict",
|
||||
"CreateAuthKeysCodeRequest",
|
||||
"CreateAuthKeysCodeRequestTypedDict",
|
||||
"CreateAuthKeysCodeResponse",
|
||||
"CreateAuthKeysCodeResponseTypedDict",
|
||||
"CreateChargeRequest",
|
||||
"CreateChargeRequestTypedDict",
|
||||
"CreateCoinbaseChargeData",
|
||||
"CreateCoinbaseChargeDataTypedDict",
|
||||
"CreateCoinbaseChargeResponse",
|
||||
"CreateCoinbaseChargeResponseTypedDict",
|
||||
"CreateCoinbaseChargeSecurity",
|
||||
"CreateCoinbaseChargeSecurityTypedDict",
|
||||
"CreateEmbeddingsData",
|
||||
"CreateEmbeddingsDataCollection",
|
||||
"CreateEmbeddingsDataTypedDict",
|
||||
"CreateEmbeddingsIgnore",
|
||||
"CreateEmbeddingsIgnoreTypedDict",
|
||||
"CreateEmbeddingsMaxPrice",
|
||||
"CreateEmbeddingsMaxPriceTypedDict",
|
||||
"CreateEmbeddingsObject",
|
||||
"CreateEmbeddingsOnly",
|
||||
"CreateEmbeddingsOnlyTypedDict",
|
||||
"CreateEmbeddingsOrder",
|
||||
"CreateEmbeddingsOrderTypedDict",
|
||||
"CreateEmbeddingsProvider",
|
||||
"CreateEmbeddingsProviderTypedDict",
|
||||
"CreateEmbeddingsRequest",
|
||||
"CreateEmbeddingsRequestTypedDict",
|
||||
"CreateEmbeddingsResponse",
|
||||
"CreateEmbeddingsResponseBody",
|
||||
"CreateEmbeddingsResponseBodyTypedDict",
|
||||
"CreateEmbeddingsResponseTypedDict",
|
||||
"CreateEmbeddingsSort",
|
||||
"CreateKeysData",
|
||||
"CreateKeysDataTypedDict",
|
||||
"CreateKeysLimitReset",
|
||||
"CreateKeysRequest",
|
||||
"CreateKeysRequestTypedDict",
|
||||
"CreateKeysResponse",
|
||||
"CreateKeysResponseTypedDict",
|
||||
"CreateResponsesResponse",
|
||||
"CreateResponsesResponseBody",
|
||||
"CreateResponsesResponseBodyTypedDict",
|
||||
"CreateResponsesResponseTypedDict",
|
||||
"DataCollection",
|
||||
"DefaultParameters",
|
||||
"DefaultParametersTypedDict",
|
||||
"DeleteKeysRequest",
|
||||
"DeleteKeysRequestTypedDict",
|
||||
"DeleteKeysResponse",
|
||||
"DeleteKeysResponseTypedDict",
|
||||
"EdgeNetworkTimeoutResponseErrorData",
|
||||
"EdgeNetworkTimeoutResponseErrorDataTypedDict",
|
||||
"Effort",
|
||||
"Embedding",
|
||||
"EmbeddingTypedDict",
|
||||
"EncodingFormat",
|
||||
"EncodingFormatBase64",
|
||||
"EncodingFormatFloat",
|
||||
"EncodingFormatTypedDict",
|
||||
"EndpointStatus",
|
||||
"EndpointsListEndpointsResponse",
|
||||
"EndpointsListEndpointsResponseTypedDict",
|
||||
"Engine",
|
||||
"ExchangeAuthCodeForAPIKeyCodeChallengeMethod",
|
||||
"ExchangeAuthCodeForAPIKeyRequest",
|
||||
"ExchangeAuthCodeForAPIKeyRequestTypedDict",
|
||||
"ExchangeAuthCodeForAPIKeyResponse",
|
||||
"ExchangeAuthCodeForAPIKeyResponseTypedDict",
|
||||
"FileCitation",
|
||||
"FileCitationType",
|
||||
"FileCitationTypedDict",
|
||||
@@ -1137,39 +897,6 @@ __all__ = [
|
||||
"FilePathTypedDict",
|
||||
"ForbiddenResponseErrorData",
|
||||
"ForbiddenResponseErrorDataTypedDict",
|
||||
"GetCreditsResponse",
|
||||
"GetCreditsResponseTypedDict",
|
||||
"GetCurrentKeyData",
|
||||
"GetCurrentKeyDataTypedDict",
|
||||
"GetCurrentKeyResponse",
|
||||
"GetCurrentKeyResponseTypedDict",
|
||||
"GetGenerationData",
|
||||
"GetGenerationDataTypedDict",
|
||||
"GetGenerationRequest",
|
||||
"GetGenerationRequestTypedDict",
|
||||
"GetGenerationResponse",
|
||||
"GetGenerationResponseTypedDict",
|
||||
"GetKeyData",
|
||||
"GetKeyDataTypedDict",
|
||||
"GetKeyRequest",
|
||||
"GetKeyRequestTypedDict",
|
||||
"GetKeyResponse",
|
||||
"GetKeyResponseTypedDict",
|
||||
"GetModelsRequest",
|
||||
"GetModelsRequestTypedDict",
|
||||
"GetParametersData",
|
||||
"GetParametersDataTypedDict",
|
||||
"GetParametersProvider",
|
||||
"GetParametersRequest",
|
||||
"GetParametersRequestTypedDict",
|
||||
"GetParametersResponse",
|
||||
"GetParametersResponseTypedDict",
|
||||
"GetParametersSecurity",
|
||||
"GetParametersSecurityTypedDict",
|
||||
"GetUserActivityRequest",
|
||||
"GetUserActivityRequestTypedDict",
|
||||
"GetUserActivityResponse",
|
||||
"GetUserActivityResponseTypedDict",
|
||||
"IDFileParser",
|
||||
"IDModeration",
|
||||
"IDWeb",
|
||||
@@ -1178,34 +905,16 @@ __all__ = [
|
||||
"ImageGenerationStatus",
|
||||
"ImageURL",
|
||||
"ImageURLTypedDict",
|
||||
"Input",
|
||||
"InputModality",
|
||||
"InputTokensDetails",
|
||||
"InputTokensDetailsTypedDict",
|
||||
"InputTypedDict",
|
||||
"InstructType",
|
||||
"InternalServerResponseErrorData",
|
||||
"InternalServerResponseErrorDataTypedDict",
|
||||
"JSONSchemaConfig",
|
||||
"JSONSchemaConfigTypedDict",
|
||||
"ListData",
|
||||
"ListDataTypedDict",
|
||||
"ListEndpointsRequest",
|
||||
"ListEndpointsRequestTypedDict",
|
||||
"ListEndpointsResponse",
|
||||
"ListEndpointsResponseTypedDict",
|
||||
"ListEndpointsZdrResponse",
|
||||
"ListEndpointsZdrResponseTypedDict",
|
||||
"ListModelsUserSecurity",
|
||||
"ListModelsUserSecurityTypedDict",
|
||||
"ListProvidersData",
|
||||
"ListProvidersDataTypedDict",
|
||||
"ListProvidersResponse",
|
||||
"ListProvidersResponseTypedDict",
|
||||
"ListRequest",
|
||||
"ListRequestTypedDict",
|
||||
"ListResponse",
|
||||
"ListResponseTypedDict",
|
||||
"MaxPrice",
|
||||
"MaxPriceTypedDict",
|
||||
"Message",
|
||||
@@ -1214,8 +923,6 @@ __all__ = [
|
||||
"MessageDeveloper",
|
||||
"MessageDeveloperTypedDict",
|
||||
"MessageTypedDict",
|
||||
"Metadata",
|
||||
"MetadataTypedDict",
|
||||
"Model",
|
||||
"ModelArchitecture",
|
||||
"ModelArchitectureInstructType",
|
||||
@@ -1235,7 +942,6 @@ __all__ = [
|
||||
"NotFoundResponseErrorData",
|
||||
"NotFoundResponseErrorDataTypedDict",
|
||||
"Object",
|
||||
"ObjectEmbedding",
|
||||
"Only",
|
||||
"OnlyTypedDict",
|
||||
"OpenAIResponsesAnnotation",
|
||||
@@ -1506,8 +1212,6 @@ __all__ = [
|
||||
"PublicPricing",
|
||||
"PublicPricingTypedDict",
|
||||
"Quantization",
|
||||
"RateLimit",
|
||||
"RateLimitTypedDict",
|
||||
"Reason",
|
||||
"Reasoning",
|
||||
"ReasoningSummaryText",
|
||||
@@ -1603,15 +1307,12 @@ __all__ = [
|
||||
"ResponsesWebSearchUserLocationTypedDict",
|
||||
"Security",
|
||||
"SecurityTypedDict",
|
||||
"SendChatCompletionRequestResponse",
|
||||
"SendChatCompletionRequestResponseTypedDict",
|
||||
"ServiceTier",
|
||||
"ServiceUnavailableResponseErrorData",
|
||||
"ServiceUnavailableResponseErrorDataTypedDict",
|
||||
"Sort",
|
||||
"StreamOptions",
|
||||
"StreamOptionsTypedDict",
|
||||
"SupportedParameter",
|
||||
"SystemMessage",
|
||||
"SystemMessageContent",
|
||||
"SystemMessageContentTypedDict",
|
||||
@@ -1632,8 +1333,6 @@ __all__ = [
|
||||
"TopLogprobTypedDict",
|
||||
"TopProviderInfo",
|
||||
"TopProviderInfoTypedDict",
|
||||
"TransferIntent",
|
||||
"TransferIntentTypedDict",
|
||||
"Truncation",
|
||||
"Type",
|
||||
"TypeResponseCompleted",
|
||||
@@ -1661,17 +1360,6 @@ __all__ = [
|
||||
"UnauthorizedResponseErrorDataTypedDict",
|
||||
"UnprocessableEntityResponseErrorData",
|
||||
"UnprocessableEntityResponseErrorDataTypedDict",
|
||||
"UpdateKeysData",
|
||||
"UpdateKeysDataTypedDict",
|
||||
"UpdateKeysLimitReset",
|
||||
"UpdateKeysRequest",
|
||||
"UpdateKeysRequestBody",
|
||||
"UpdateKeysRequestBodyTypedDict",
|
||||
"UpdateKeysRequestTypedDict",
|
||||
"UpdateKeysResponse",
|
||||
"UpdateKeysResponseTypedDict",
|
||||
"Usage",
|
||||
"UsageTypedDict",
|
||||
"UserMessage",
|
||||
"UserMessageContent",
|
||||
"UserMessageContentTypedDict",
|
||||
@@ -1680,8 +1368,6 @@ __all__ = [
|
||||
"VariablesTypedDict",
|
||||
"VideoURL",
|
||||
"VideoURLTypedDict",
|
||||
"Web3Data",
|
||||
"Web3DataTypedDict",
|
||||
"WebSearchPreviewToolUserLocation",
|
||||
"WebSearchPreviewToolUserLocationType",
|
||||
"WebSearchPreviewToolUserLocationTypedDict",
|
||||
@@ -1799,87 +1485,14 @@ _dynamic_imports: dict[str, str] = {
|
||||
"CompletionResponseTypedDict": ".completionresponse",
|
||||
"CompletionUsage": ".completionusage",
|
||||
"CompletionUsageTypedDict": ".completionusage",
|
||||
"CreateAuthKeysCodeCodeChallengeMethod": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeData": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeDataTypedDict": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeRequest": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeRequestTypedDict": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeResponse": ".createauthkeyscodeop",
|
||||
"CreateAuthKeysCodeResponseTypedDict": ".createauthkeyscodeop",
|
||||
"ChainID": ".createchargerequest",
|
||||
"CreateChargeRequest": ".createchargerequest",
|
||||
"CreateChargeRequestTypedDict": ".createchargerequest",
|
||||
"CallData": ".createcoinbasechargeop",
|
||||
"CallDataTypedDict": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeData": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeDataTypedDict": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeResponse": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeResponseTypedDict": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeSecurity": ".createcoinbasechargeop",
|
||||
"CreateCoinbaseChargeSecurityTypedDict": ".createcoinbasechargeop",
|
||||
"Metadata": ".createcoinbasechargeop",
|
||||
"MetadataTypedDict": ".createcoinbasechargeop",
|
||||
"TransferIntent": ".createcoinbasechargeop",
|
||||
"TransferIntentTypedDict": ".createcoinbasechargeop",
|
||||
"Web3Data": ".createcoinbasechargeop",
|
||||
"Web3DataTypedDict": ".createcoinbasechargeop",
|
||||
"CreateEmbeddingsData": ".createembeddingsop",
|
||||
"CreateEmbeddingsDataCollection": ".createembeddingsop",
|
||||
"CreateEmbeddingsDataTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsIgnore": ".createembeddingsop",
|
||||
"CreateEmbeddingsIgnoreTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsMaxPrice": ".createembeddingsop",
|
||||
"CreateEmbeddingsMaxPriceTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsObject": ".createembeddingsop",
|
||||
"CreateEmbeddingsOnly": ".createembeddingsop",
|
||||
"CreateEmbeddingsOnlyTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsOrder": ".createembeddingsop",
|
||||
"CreateEmbeddingsOrderTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsProvider": ".createembeddingsop",
|
||||
"CreateEmbeddingsProviderTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsRequest": ".createembeddingsop",
|
||||
"CreateEmbeddingsRequestTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsResponse": ".createembeddingsop",
|
||||
"CreateEmbeddingsResponseBody": ".createembeddingsop",
|
||||
"CreateEmbeddingsResponseBodyTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsResponseTypedDict": ".createembeddingsop",
|
||||
"CreateEmbeddingsSort": ".createembeddingsop",
|
||||
"Embedding": ".createembeddingsop",
|
||||
"EmbeddingTypedDict": ".createembeddingsop",
|
||||
"EncodingFormat": ".createembeddingsop",
|
||||
"EncodingFormatBase64": ".createembeddingsop",
|
||||
"EncodingFormatFloat": ".createembeddingsop",
|
||||
"EncodingFormatTypedDict": ".createembeddingsop",
|
||||
"Input": ".createembeddingsop",
|
||||
"InputTypedDict": ".createembeddingsop",
|
||||
"ObjectEmbedding": ".createembeddingsop",
|
||||
"Usage": ".createembeddingsop",
|
||||
"UsageTypedDict": ".createembeddingsop",
|
||||
"CreateKeysData": ".createkeysop",
|
||||
"CreateKeysDataTypedDict": ".createkeysop",
|
||||
"CreateKeysLimitReset": ".createkeysop",
|
||||
"CreateKeysRequest": ".createkeysop",
|
||||
"CreateKeysRequestTypedDict": ".createkeysop",
|
||||
"CreateKeysResponse": ".createkeysop",
|
||||
"CreateKeysResponseTypedDict": ".createkeysop",
|
||||
"CreateResponsesResponse": ".createresponsesop",
|
||||
"CreateResponsesResponseBody": ".createresponsesop",
|
||||
"CreateResponsesResponseBodyTypedDict": ".createresponsesop",
|
||||
"CreateResponsesResponseTypedDict": ".createresponsesop",
|
||||
"DefaultParameters": ".defaultparameters",
|
||||
"DefaultParametersTypedDict": ".defaultparameters",
|
||||
"DeleteKeysRequest": ".deletekeysop",
|
||||
"DeleteKeysRequestTypedDict": ".deletekeysop",
|
||||
"DeleteKeysResponse": ".deletekeysop",
|
||||
"DeleteKeysResponseTypedDict": ".deletekeysop",
|
||||
"EdgeNetworkTimeoutResponseErrorData": ".edgenetworktimeoutresponseerrordata",
|
||||
"EdgeNetworkTimeoutResponseErrorDataTypedDict": ".edgenetworktimeoutresponseerrordata",
|
||||
"EndpointStatus": ".endpointstatus",
|
||||
"ExchangeAuthCodeForAPIKeyCodeChallengeMethod": ".exchangeauthcodeforapikeyop",
|
||||
"ExchangeAuthCodeForAPIKeyRequest": ".exchangeauthcodeforapikeyop",
|
||||
"ExchangeAuthCodeForAPIKeyRequestTypedDict": ".exchangeauthcodeforapikeyop",
|
||||
"ExchangeAuthCodeForAPIKeyResponse": ".exchangeauthcodeforapikeyop",
|
||||
"ExchangeAuthCodeForAPIKeyResponseTypedDict": ".exchangeauthcodeforapikeyop",
|
||||
"FileCitation": ".filecitation",
|
||||
"FileCitationType": ".filecitation",
|
||||
"FileCitationTypedDict": ".filecitation",
|
||||
@@ -1888,43 +1501,6 @@ _dynamic_imports: dict[str, str] = {
|
||||
"FilePathTypedDict": ".filepath",
|
||||
"ForbiddenResponseErrorData": ".forbiddenresponseerrordata",
|
||||
"ForbiddenResponseErrorDataTypedDict": ".forbiddenresponseerrordata",
|
||||
"GetCreditsResponse": ".getcreditsop",
|
||||
"GetCreditsResponseTypedDict": ".getcreditsop",
|
||||
"GetCurrentKeyData": ".getcurrentkeyop",
|
||||
"GetCurrentKeyDataTypedDict": ".getcurrentkeyop",
|
||||
"GetCurrentKeyResponse": ".getcurrentkeyop",
|
||||
"GetCurrentKeyResponseTypedDict": ".getcurrentkeyop",
|
||||
"RateLimit": ".getcurrentkeyop",
|
||||
"RateLimitTypedDict": ".getcurrentkeyop",
|
||||
"APIType": ".getgenerationop",
|
||||
"GetGenerationData": ".getgenerationop",
|
||||
"GetGenerationDataTypedDict": ".getgenerationop",
|
||||
"GetGenerationRequest": ".getgenerationop",
|
||||
"GetGenerationRequestTypedDict": ".getgenerationop",
|
||||
"GetGenerationResponse": ".getgenerationop",
|
||||
"GetGenerationResponseTypedDict": ".getgenerationop",
|
||||
"GetKeyData": ".getkeyop",
|
||||
"GetKeyDataTypedDict": ".getkeyop",
|
||||
"GetKeyRequest": ".getkeyop",
|
||||
"GetKeyRequestTypedDict": ".getkeyop",
|
||||
"GetKeyResponse": ".getkeyop",
|
||||
"GetKeyResponseTypedDict": ".getkeyop",
|
||||
"GetModelsRequest": ".getmodelsop",
|
||||
"GetModelsRequestTypedDict": ".getmodelsop",
|
||||
"GetParametersData": ".getparametersop",
|
||||
"GetParametersDataTypedDict": ".getparametersop",
|
||||
"GetParametersProvider": ".getparametersop",
|
||||
"GetParametersRequest": ".getparametersop",
|
||||
"GetParametersRequestTypedDict": ".getparametersop",
|
||||
"GetParametersResponse": ".getparametersop",
|
||||
"GetParametersResponseTypedDict": ".getparametersop",
|
||||
"GetParametersSecurity": ".getparametersop",
|
||||
"GetParametersSecurityTypedDict": ".getparametersop",
|
||||
"SupportedParameter": ".getparametersop",
|
||||
"GetUserActivityRequest": ".getuseractivityop",
|
||||
"GetUserActivityRequestTypedDict": ".getuseractivityop",
|
||||
"GetUserActivityResponse": ".getuseractivityop",
|
||||
"GetUserActivityResponseTypedDict": ".getuseractivityop",
|
||||
"ImageGenerationStatus": ".imagegenerationstatus",
|
||||
"InputModality": ".inputmodality",
|
||||
"InstructType": ".instructtype",
|
||||
@@ -1932,29 +1508,11 @@ _dynamic_imports: dict[str, str] = {
|
||||
"InternalServerResponseErrorDataTypedDict": ".internalserverresponseerrordata",
|
||||
"JSONSchemaConfig": ".jsonschemaconfig",
|
||||
"JSONSchemaConfigTypedDict": ".jsonschemaconfig",
|
||||
"EndpointsListEndpointsResponse": ".listendpointsop",
|
||||
"EndpointsListEndpointsResponseTypedDict": ".listendpointsop",
|
||||
"ListEndpointsRequest": ".listendpointsop",
|
||||
"ListEndpointsRequestTypedDict": ".listendpointsop",
|
||||
"Architecture": ".listendpointsresponse",
|
||||
"ArchitectureTypedDict": ".listendpointsresponse",
|
||||
"ListEndpointsResponse": ".listendpointsresponse",
|
||||
"ListEndpointsResponseTypedDict": ".listendpointsresponse",
|
||||
"Tokenizer": ".listendpointsresponse",
|
||||
"ListEndpointsZdrResponse": ".listendpointszdrop",
|
||||
"ListEndpointsZdrResponseTypedDict": ".listendpointszdrop",
|
||||
"ListModelsUserSecurity": ".listmodelsuserop",
|
||||
"ListModelsUserSecurityTypedDict": ".listmodelsuserop",
|
||||
"ListData": ".listop",
|
||||
"ListDataTypedDict": ".listop",
|
||||
"ListRequest": ".listop",
|
||||
"ListRequestTypedDict": ".listop",
|
||||
"ListResponse": ".listop",
|
||||
"ListResponseTypedDict": ".listop",
|
||||
"ListProvidersData": ".listprovidersop",
|
||||
"ListProvidersDataTypedDict": ".listprovidersop",
|
||||
"ListProvidersResponse": ".listprovidersop",
|
||||
"ListProvidersResponseTypedDict": ".listprovidersop",
|
||||
"Message": ".message",
|
||||
"MessageContent": ".message",
|
||||
"MessageContentTypedDict": ".message",
|
||||
@@ -2377,8 +1935,6 @@ _dynamic_imports: dict[str, str] = {
|
||||
"ResponseTextConfigVerbosity": ".responsetextconfig",
|
||||
"Security": ".security",
|
||||
"SecurityTypedDict": ".security",
|
||||
"SendChatCompletionRequestResponse": ".sendchatcompletionrequestop",
|
||||
"SendChatCompletionRequestResponseTypedDict": ".sendchatcompletionrequestop",
|
||||
"ServiceUnavailableResponseErrorData": ".serviceunavailableresponseerrordata",
|
||||
"ServiceUnavailableResponseErrorDataTypedDict": ".serviceunavailableresponseerrordata",
|
||||
"SystemMessage": ".systemmessage",
|
||||
@@ -2402,15 +1958,6 @@ _dynamic_imports: dict[str, str] = {
|
||||
"UnauthorizedResponseErrorDataTypedDict": ".unauthorizedresponseerrordata",
|
||||
"UnprocessableEntityResponseErrorData": ".unprocessableentityresponseerrordata",
|
||||
"UnprocessableEntityResponseErrorDataTypedDict": ".unprocessableentityresponseerrordata",
|
||||
"UpdateKeysData": ".updatekeysop",
|
||||
"UpdateKeysDataTypedDict": ".updatekeysop",
|
||||
"UpdateKeysLimitReset": ".updatekeysop",
|
||||
"UpdateKeysRequest": ".updatekeysop",
|
||||
"UpdateKeysRequestBody": ".updatekeysop",
|
||||
"UpdateKeysRequestBodyTypedDict": ".updatekeysop",
|
||||
"UpdateKeysRequestTypedDict": ".updatekeysop",
|
||||
"UpdateKeysResponse": ".updatekeysop",
|
||||
"UpdateKeysResponseTypedDict": ".updatekeysop",
|
||||
"URLCitation": ".urlcitation",
|
||||
"URLCitationType": ".urlcitation",
|
||||
"URLCitationTypedDict": ".urlcitation",
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user