mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.10.5 (#374)
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
7efd03fb3b
commit
66512fa808
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.10.4"
|
||||
__version__: str = "0.10.5"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.788.4"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.4 2.788.4 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.5 2.788.4 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -533,7 +533,7 @@ class APIKeys(BaseSDK):
|
||||
) -> operations.CreateKeysResponse:
|
||||
r"""Create a new API key
|
||||
|
||||
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param name: Name for the new API key
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
@@ -696,7 +696,7 @@ class APIKeys(BaseSDK):
|
||||
) -> operations.CreateKeysResponse:
|
||||
r"""Create a new API key
|
||||
|
||||
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param name: Name for the new API key
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
|
||||
@@ -359,7 +359,7 @@ class Byok(BaseSDK):
|
||||
) -> components.CreateBYOKKeyResponse:
|
||||
r"""Create a BYOK provider credential
|
||||
|
||||
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses.
|
||||
:param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
||||
@@ -520,7 +520,7 @@ class Byok(BaseSDK):
|
||||
) -> components.CreateBYOKKeyResponse:
|
||||
r"""Create a BYOK provider credential
|
||||
|
||||
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses.
|
||||
:param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).
|
||||
|
||||
@@ -1275,7 +1275,7 @@ class Guardrails(BaseSDK):
|
||||
) -> components.UpdateGuardrailResponse:
|
||||
r"""Update a guardrail
|
||||
|
||||
Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The unique identifier of the guardrail to update
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
@@ -1476,7 +1476,7 @@ class Guardrails(BaseSDK):
|
||||
) -> components.UpdateGuardrailResponse:
|
||||
r"""Update a guardrail
|
||||
|
||||
Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The unique identifier of the guardrail to update
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
@@ -1982,7 +1982,7 @@ class Guardrails(BaseSDK):
|
||||
) -> components.BulkAssignKeysResponse:
|
||||
r"""Bulk assign keys to a guardrail
|
||||
|
||||
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The unique identifier of the guardrail
|
||||
:param key_hashes: Array of API key hashes to assign to the guardrail
|
||||
@@ -2125,7 +2125,7 @@ class Guardrails(BaseSDK):
|
||||
) -> components.BulkAssignKeysResponse:
|
||||
r"""Bulk assign keys to a guardrail
|
||||
|
||||
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The unique identifier of the guardrail
|
||||
:param key_hashes: Array of API key hashes to assign to the guardrail
|
||||
|
||||
@@ -726,7 +726,7 @@ class VideoGeneration(BaseSDK):
|
||||
request_has_path_params=True,
|
||||
request_has_query_params=True,
|
||||
user_agent_header="user-agent",
|
||||
accept_header_value="application/octet-stream",
|
||||
accept_header_value="video/mp4",
|
||||
http_headers=http_headers,
|
||||
_globals=operations.ListVideosContentGlobals(
|
||||
http_referer=self.sdk_configuration.globals.http_referer,
|
||||
@@ -767,7 +767,7 @@ class VideoGeneration(BaseSDK):
|
||||
)
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/octet-stream"):
|
||||
if utils.match_response(http_res, "200", "video/mp4"):
|
||||
return http_res
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
@@ -878,7 +878,7 @@ class VideoGeneration(BaseSDK):
|
||||
request_has_path_params=True,
|
||||
request_has_query_params=True,
|
||||
user_agent_header="user-agent",
|
||||
accept_header_value="application/octet-stream",
|
||||
accept_header_value="video/mp4",
|
||||
http_headers=http_headers,
|
||||
_globals=operations.ListVideosContentGlobals(
|
||||
http_referer=self.sdk_configuration.globals.http_referer,
|
||||
@@ -919,7 +919,7 @@ class VideoGeneration(BaseSDK):
|
||||
)
|
||||
|
||||
response_data: Any = None
|
||||
if utils.match_response(http_res, "200", "application/octet-stream"):
|
||||
if utils.match_response(http_res, "200", "video/mp4"):
|
||||
return http_res
|
||||
if utils.match_response(http_res, "400", "application/json"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
|
||||
@@ -676,7 +676,7 @@ class Workspaces(BaseSDK):
|
||||
) -> components.DeleteWorkspaceResponse:
|
||||
r"""Delete a workspace
|
||||
|
||||
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The workspace ID (UUID) or slug
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
@@ -812,7 +812,7 @@ class Workspaces(BaseSDK):
|
||||
) -> components.DeleteWorkspaceResponse:
|
||||
r"""Delete a workspace
|
||||
|
||||
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
|
||||
:param id: The workspace ID (UUID) or slug
|
||||
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
||||
|
||||
Reference in New Issue
Block a user