feat: regenerate SDK with updated OpenAPI spec

Speakeasy regeneration with latest schema changes including
type renames and new server tool models.
This commit is contained in:
OpenRouter SDK Bot
2026-03-27 15:18:14 -04:00
parent e72a84e82d
commit 5ab44f08f0
375 changed files with 36229 additions and 5480 deletions
+36 -16
View File
@@ -24,7 +24,8 @@ class Embeddings(BaseSDK):
input: Union[operations.InputUnion, operations.InputUnionTypedDict],
model: str,
http_referer: Optional[str] = None,
x_title: Optional[str] = None,
x_open_router_title: Optional[str] = None,
x_open_router_categories: Optional[str] = None,
encoding_format: Optional[operations.EncodingFormat] = None,
dimensions: Optional[int] = None,
user: Optional[str] = None,
@@ -49,7 +50,9 @@ class Embeddings(BaseSDK):
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
:param x_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param encoding_format:
:param dimensions:
@@ -74,7 +77,8 @@ class Embeddings(BaseSDK):
request = operations.CreateEmbeddingsRequest(
http_referer=http_referer,
x_title=x_title,
x_open_router_title=x_open_router_title,
x_open_router_categories=x_open_router_categories,
request_body=operations.CreateEmbeddingsRequestBody(
input=utils.get_pydantic_model(input, operations.InputUnion),
model=model,
@@ -104,7 +108,8 @@ class Embeddings(BaseSDK):
http_headers=http_headers,
_globals=operations.CreateEmbeddingsGlobals(
http_referer=self.sdk_configuration.globals.http_referer,
x_title=self.sdk_configuration.globals.x_title,
x_open_router_title=self.sdk_configuration.globals.x_open_router_title,
x_open_router_categories=self.sdk_configuration.globals.x_open_router_categories,
),
security=self.sdk_configuration.security,
get_serialized_body=lambda: utils.serialize_request_body(
@@ -230,7 +235,8 @@ class Embeddings(BaseSDK):
input: Union[operations.InputUnion, operations.InputUnionTypedDict],
model: str,
http_referer: Optional[str] = None,
x_title: Optional[str] = None,
x_open_router_title: Optional[str] = None,
x_open_router_categories: Optional[str] = None,
encoding_format: Optional[operations.EncodingFormat] = None,
dimensions: Optional[int] = None,
user: Optional[str] = None,
@@ -255,7 +261,9 @@ class Embeddings(BaseSDK):
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
:param x_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param encoding_format:
:param dimensions:
@@ -280,7 +288,8 @@ class Embeddings(BaseSDK):
request = operations.CreateEmbeddingsRequest(
http_referer=http_referer,
x_title=x_title,
x_open_router_title=x_open_router_title,
x_open_router_categories=x_open_router_categories,
request_body=operations.CreateEmbeddingsRequestBody(
input=utils.get_pydantic_model(input, operations.InputUnion),
model=model,
@@ -310,7 +319,8 @@ class Embeddings(BaseSDK):
http_headers=http_headers,
_globals=operations.CreateEmbeddingsGlobals(
http_referer=self.sdk_configuration.globals.http_referer,
x_title=self.sdk_configuration.globals.x_title,
x_open_router_title=self.sdk_configuration.globals.x_open_router_title,
x_open_router_categories=self.sdk_configuration.globals.x_open_router_categories,
),
security=self.sdk_configuration.security,
get_serialized_body=lambda: utils.serialize_request_body(
@@ -434,7 +444,8 @@ class Embeddings(BaseSDK):
self,
*,
http_referer: Optional[str] = None,
x_title: Optional[str] = None,
x_open_router_title: Optional[str] = None,
x_open_router_categories: Optional[str] = None,
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
@@ -447,7 +458,9 @@ class Embeddings(BaseSDK):
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
:param x_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
@@ -466,7 +479,8 @@ class Embeddings(BaseSDK):
request = operations.ListEmbeddingsModelsRequest(
http_referer=http_referer,
x_title=x_title,
x_open_router_title=x_open_router_title,
x_open_router_categories=x_open_router_categories,
)
req = self._build_request(
@@ -483,7 +497,8 @@ class Embeddings(BaseSDK):
http_headers=http_headers,
_globals=operations.ListEmbeddingsModelsGlobals(
http_referer=self.sdk_configuration.globals.http_referer,
x_title=self.sdk_configuration.globals.x_title,
x_open_router_title=self.sdk_configuration.globals.x_open_router_title,
x_open_router_categories=self.sdk_configuration.globals.x_open_router_categories,
),
security=self.sdk_configuration.security,
allow_empty_value=None,
@@ -543,7 +558,8 @@ class Embeddings(BaseSDK):
self,
*,
http_referer: Optional[str] = None,
x_title: Optional[str] = None,
x_open_router_title: Optional[str] = None,
x_open_router_categories: Optional[str] = None,
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
@@ -556,7 +572,9 @@ class Embeddings(BaseSDK):
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
:param x_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_title: The app display name allows you to customize how your app appears in OpenRouter's dashboard.
:param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
@@ -575,7 +593,8 @@ class Embeddings(BaseSDK):
request = operations.ListEmbeddingsModelsRequest(
http_referer=http_referer,
x_title=x_title,
x_open_router_title=x_open_router_title,
x_open_router_categories=x_open_router_categories,
)
req = self._build_request_async(
@@ -592,7 +611,8 @@ class Embeddings(BaseSDK):
http_headers=http_headers,
_globals=operations.ListEmbeddingsModelsGlobals(
http_referer=self.sdk_configuration.globals.http_referer,
x_title=self.sdk_configuration.globals.x_title,
x_open_router_title=self.sdk_configuration.globals.x_open_router_title,
x_open_router_categories=self.sdk_configuration.globals.x_open_router_categories,
),
security=self.sdk_configuration.security,
allow_empty_value=None,