Skip to content

Commit 3f946ba

Browse files
Update clients to latest platform release (4.0.12) (#41)
Co-authored-by: Anand J <[email protected]>
1 parent b98fa49 commit 3f946ba

27 files changed

+276
-20
lines changed

README.md

Lines changed: 2 additions & 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.0.11
7+
- Package version: 4.0.12
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -163,6 +163,7 @@ Class | Method | HTTP request | Description
163163
- [DeploymentStatusRequest](docs/DeploymentStatusRequest.md)
164164
- [DeploymentStatusResponse](docs/DeploymentStatusResponse.md)
165165
- [DeploymentType](docs/DeploymentType.md)
166+
- [DeploymentUsage](docs/DeploymentUsage.md)
166167
- [DeploymentUsageValue](docs/DeploymentUsageValue.md)
167168
- [GetAutochargePreferencesResponse](docs/GetAutochargePreferencesResponse.md)
168169
- [GetCServeV2DeploymentResponse](docs/GetCServeV2DeploymentResponse.md)

docs/CreateCServeV2DeploymentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**cluster_id** | **int** | |
1010
**hardware_instance_id** | **int** | |
1111
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
12+
**cserve_version** | **str** | | [optional]
1213
**hf_token** | **str** | | [optional]
1314
**endpoint_bearer_token** | **str** | | [optional]
1415
**endpoint_certificate_authority** | **str** | | [optional]

docs/CreateRagDeploymentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**cluster_id** | **int** | |
1010
**hardware_instance_id** | **int** | |
1111
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
12+
**cserve_version** | **str** | | [optional]
1213
**hf_token** | **str** | | [optional]
1314
**llm_model** | **str** | |
1415
**centml_api_key** | **str** | |

docs/DeploymentUsage.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# DeploymentUsage
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**metric** | **Dict[str, str]** | |
9+
**values** | [**List[DeploymentUsageValue]**](DeploymentUsageValue.md) | |
10+
11+
## Example
12+
13+
```python
14+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of DeploymentUsage from a JSON string
19+
deployment_usage_instance = DeploymentUsage.from_json(json)
20+
# print the JSON string representation of the object
21+
print(DeploymentUsage.to_json())
22+
23+
# convert the object into a dict
24+
deployment_usage_dict = deployment_usage_instance.to_dict()
25+
# create an instance of DeploymentUsage from a dict
26+
deployment_usage_from_dict = DeploymentUsage.from_dict(deployment_usage_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/GetCServeV2DeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**created_at** | **datetime** | |
1616
**hardware_instance_id** | **int** | |
1717
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
18+
**cserve_version** | **str** | | [optional]
1819
**min_scale** | **int** | |
1920
**max_scale** | **int** | |
2021
**initial_scale** | **int** | | [optional]

docs/GetDeploymentUsageResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**values** | [**List[DeploymentUsageValue]**](DeploymentUsageValue.md) | |
8+
**values** | [**List[DeploymentUsage]**](DeploymentUsage.md) | |
99

1010
## Example
1111

docs/GetRagDeploymentResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**created_at** | **datetime** | |
1616
**hardware_instance_id** | **int** | |
1717
**recipe** | [**CServeV2Recipe**](CServeV2Recipe.md) | |
18+
**cserve_version** | **str** | | [optional]
1819
**llm_model** | **str** | |
1920
**centml_api_key** | **str** | |
2021
**min_scale** | **int** | | [optional] [default to 1]

docs/Metric.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@
1111

1212
* `HTTP_REQUESTS` (value: `'http_requests'`)
1313

14+
* `HTTP_REQUESTS_BY_STATUS` (value: `'http_requests_by_status'`)
15+
16+
* `ERROR_CODE` (value: `'error_code'`)
17+
1418
* `REQUEST_LATENCY_50_PERCENTILE` (value: `'request_latency_50_percentile'`)
1519

1620
* `REQUEST_LATENCY_90_PERCENTILE` (value: `'request_latency_90_percentile'`)
1721

1822
* `REQUEST_LATENCY_99_PERCENTILE` (value: `'request_latency_99_percentile'`)
1923

24+
* `TOKENS_PER_SECOND` (value: `'tokens_per_second'`)
25+
26+
* `TIME_TO_FIRST_TOKEN` (value: `'time_to_first_token'`)
27+
2028
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2129

2230

platform_api_python_client/__init__.py

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

1616

17-
__version__ = "4.0.11"
17+
__version__ = "4.0.12"
1818

1919
# import apis into sdk package
2020
from platform_api_python_client.api.external_api import EXTERNALApi
@@ -55,6 +55,7 @@
5555
from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
5656
from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse
5757
from platform_api_python_client.models.deployment_type import DeploymentType
58+
from platform_api_python_client.models.deployment_usage import DeploymentUsage
5859
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
5960
from platform_api_python_client.models.get_autocharge_preferences_response import GetAutochargePreferencesResponse
6061
from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse

platform_api_python_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/4.0.11/python'
93+
self.user_agent = 'OpenAPI-Generator/4.0.12/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

0 commit comments

Comments
 (0)