This commit is contained in:
Matt Apperson
2025-11-13 14:21:27 -05:00
parent d13e797ad1
commit 94ba44c933
795 changed files with 5179 additions and 4513 deletions
+9 -9
View File
@@ -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 Generations(BaseSDK):
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None,
) -> models.GetGenerationData:
) -> operations.GetGenerationData:
r"""Get request & usage metadata for a generation
:param id:
@@ -39,7 +39,7 @@ class Generations(BaseSDK):
else:
base_url = self._get_url(base_url, url_variables)
request = models.GetGenerationRequest(
request = operations.GetGenerationRequest(
id=id,
)
@@ -74,7 +74,7 @@ class Generations(BaseSDK):
operation_id="getGeneration",
oauth2_scopes=None,
security_source=get_security_from_env(
self.sdk_configuration.security, models.Security
self.sdk_configuration.security, components.Security
),
),
request=req,
@@ -95,7 +95,7 @@ class Generations(BaseSDK):
response_data: Any = None
if utils.match_response(http_res, "200", "application/json"):
return unmarshal_json_response(models.GetGenerationResponse, http_res)
return unmarshal_json_response(operations.GetGenerationResponse, http_res)
if utils.match_response(http_res, "401", "application/json"):
response_data = unmarshal_json_response(
errors.UnauthorizedResponseErrorData, http_res
@@ -157,7 +157,7 @@ class Generations(BaseSDK):
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None,
) -> models.GetGenerationData:
) -> operations.GetGenerationData:
r"""Get request & usage metadata for a generation
:param id:
@@ -176,7 +176,7 @@ class Generations(BaseSDK):
else:
base_url = self._get_url(base_url, url_variables)
request = models.GetGenerationRequest(
request = operations.GetGenerationRequest(
id=id,
)
@@ -211,7 +211,7 @@ class Generations(BaseSDK):
operation_id="getGeneration",
oauth2_scopes=None,
security_source=get_security_from_env(
self.sdk_configuration.security, models.Security
self.sdk_configuration.security, components.Security
),
),
request=req,
@@ -232,7 +232,7 @@ class Generations(BaseSDK):
response_data: Any = None
if utils.match_response(http_res, "200", "application/json"):
return unmarshal_json_response(models.GetGenerationResponse, http_res)
return unmarshal_json_response(operations.GetGenerationResponse, http_res)
if utils.match_response(http_res, "401", "application/json"):
response_data = unmarshal_json_response(
errors.UnauthorizedResponseErrorData, http_res