Skip to content

Commit 2fba245

Browse files
Update clients to latest platform release (4.41.0) (#126)
Co-authored-by: platform CI <automation@centml.ai>
1 parent db0aa66 commit 2fba245

14 files changed

Lines changed: 18 additions & 8 deletions

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.1.0
7-
- Package version: 4.40.1
7+
- Package version: 4.41.0
88
- Generator version: 7.26.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

‎docs/CreateInferenceV3DeploymentRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Name | Type | Description | Notes
3333
**hf_token** | **str** | | [optional]
3434
**env_vars_refs** | **object** | | [optional]
3535
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
36+
**request_body_limit_mib** | **int** | Maximum request-body size in MiB, including encoding and multipart overhead. Defaults to 15 MiB; must be between 1 and 1024 MiB. | [optional] [default to 15]
3637
**enable_logging** | **bool** | | [optional] [default to False]
3738
**enable_node_model_cache** | **bool** | | [optional] [default to False]
3839
**session_affinity** | **bool** | Enable best-effort sticky routing via the &#x60;X-Session-Id&#x60; request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state. | [optional] [default to False]

‎docs/DeploymentResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Name | Type | Description | Notes
5151
**original_command** | **str** | | [optional]
5252
**image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional]
5353
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
54+
**request_body_limit_mib** | **int** | Maximum request-body size in MiB, including encoding and multipart overhead. Defaults to 15 MiB; must be between 1 and 1024 MiB. | [optional] [default to 15]
5455
**session_affinity** | **bool** | Enable best-effort sticky routing via the &#x60;X-Session-Id&#x60; request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state. | [optional] [default to False]
5556
**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional]
5657
**metrics** | [**MetricsConfig**](MetricsConfig.md) | | [optional]

‎docs/GetInferenceV3DeploymentResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Name | Type | Description | Notes
3939
**image_pull_ref** | **int** | | [optional]
4040
**image_pull_secret_name** | **str** | Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it. | [optional]
4141
**backend_protocol** | [**BackendProtocol**](BackendProtocol.md) | | [optional]
42+
**request_body_limit_mib** | **int** | Maximum request-body size in MiB, including encoding and multipart overhead. Defaults to 15 MiB; must be between 1 and 1024 MiB. | [optional] [default to 15]
4243
**enable_logging** | **bool** | | [optional] [default to True]
4344
**enable_node_model_cache** | **bool** | | [optional] [default to False]
4445
**session_affinity** | **bool** | Enable best-effort sticky routing via the &#x60;X-Session-Id&#x60; request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state. | [optional] [default to False]

‎platform_api_python_client/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "4.40.1"
17+
__version__ = "4.41.0"
1818

1919
# Define package exports
2020
__all__ = [

‎platform_api_python_client/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/4.40.1/python'
94+
self.user_agent = 'OpenAPI-Generator/4.41.0/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

‎platform_api_python_client/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_debug_report(self) -> str:
562562
"OS: {env}\n"\
563563
"Python Version: {pyversion}\n"\
564564
"Version of the API: 0.1.0\n"\
565-
"SDK Package Version: 4.40.1".\
565+
"SDK Package Version: 4.41.0".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

568568
def get_host_settings(self) -> List[HostSetting]:

‎platform_api_python_client/models/create_inference_v3_deployment_request.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ class CreateInferenceV3DeploymentRequest(BaseModel):
6161
hf_token: Optional[StrictStr] = None
6262
env_vars_refs: Optional[Dict[str, Any]] = None
6363
backend_protocol: Optional[BackendProtocol] = None
64+
request_body_limit_mib: Optional[Annotated[int, Field(le=1024, strict=True, ge=1)]] = Field(default=15, description="Maximum request-body size in MiB, including encoding and multipart overhead. Defaults to 15 MiB; must be between 1 and 1024 MiB.")
6465
enable_logging: Optional[StrictBool] = False
6566
enable_node_model_cache: Optional[StrictBool] = False
6667
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
6768
config_file: Optional[ConfigFileMount] = None
6869
metrics: Optional[MetricsConfig] = None
69-
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
70+
__properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "hf_token_ref", "image_url", "image_pull_secret_credentials", "image_pull_ref", "image_pull_secret_name", "port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "env_vars", "command", "endpoint_bearer_token", "bearer_token_ref", "endpoint_certificate_authority", "hf_token", "env_vars_refs", "backend_protocol", "request_body_limit_mib", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
7071

7172
@field_validator('name', mode="before")
7273
def name_validate_regular_expression(cls, value):
@@ -274,6 +275,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
274275
"hf_token": obj.get("hf_token"),
275276
"env_vars_refs": obj.get("env_vars_refs"),
276277
"backend_protocol": obj.get("backend_protocol"),
278+
"request_body_limit_mib": obj.get("request_body_limit_mib") if obj.get("request_body_limit_mib") is not None else 15,
277279
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else False,
278280
"enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False,
279281
"session_affinity": obj.get("session_affinity") if obj.get("session_affinity") is not None else False,

‎platform_api_python_client/models/get_inference_v3_deployment_response.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ class GetInferenceV3DeploymentResponse(BaseModel):
7070
image_pull_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
7171
image_pull_secret_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = Field(default=None, description="Name of a pre-existing image pull Secret in the deployment namespace. Created, refreshed and deleted externally. Mutually exclusive with inline registry credentials and image_pull_ref. Include on updates to retain it; null clears it.")
7272
backend_protocol: Optional[BackendProtocol] = None
73+
request_body_limit_mib: Optional[Annotated[int, Field(le=1024, strict=True, ge=1)]] = Field(default=15, description="Maximum request-body size in MiB, including encoding and multipart overhead. Defaults to 15 MiB; must be between 1 and 1024 MiB.")
7374
enable_logging: Optional[StrictBool] = True
7475
enable_node_model_cache: Optional[StrictBool] = False
7576
session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
7677
config_file: Optional[ConfigFileMount] = None
7778
metrics: Optional[MetricsConfig] = None
78-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "hf_token_ref", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "env_vars_refs", "bearer_token_ref", "image_pull_ref", "image_pull_secret_name", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
79+
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "hf_token_ref", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "env_vars_refs", "bearer_token_ref", "image_pull_ref", "image_pull_secret_name", "backend_protocol", "request_body_limit_mib", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
7980

8081
@field_validator('image_pull_secret_name', mode="before")
8182
def image_pull_secret_name_validate_regular_expression(cls, value):
@@ -282,6 +283,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
282283
"image_pull_ref": obj.get("image_pull_ref"),
283284
"image_pull_secret_name": obj.get("image_pull_secret_name"),
284285
"backend_protocol": obj.get("backend_protocol"),
286+
"request_body_limit_mib": obj.get("request_body_limit_mib") if obj.get("request_body_limit_mib") is not None else 15,
285287
"enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True,
286288
"enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False,
287289
"session_affinity": obj.get("session_affinity") if obj.get("session_affinity") is not None else False,

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "platform_api_python_client"
3-
version = "4.40.1"
3+
version = "4.41.0"
44
description = "Platform External API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

0 commit comments

Comments
 (0)