Skip to content

Commit c6b9a0b

Browse files
fix: Update types for deployment summary to acknowledge optionality on hardware property
Stainless-Generated-From: 370bc4359ca12e34918aa60c68e02a88045dcc4d
1 parent 7b05b97 commit c6b9a0b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/mock

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/together/types/beta/endpoint_deployment_summary.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class EndpointDeploymentSummary(BaseModel):
3030
created_at: datetime = FieldInfo(alias="createdAt")
3131
"""Timestamp when the deployment was created."""
3232

33-
hardware: str
33+
estimated_effective_traffic_share: float = FieldInfo(alias="estimatedEffectiveTrafficShare")
3434
"""
35-
Hardware configuration selected by the deployment's config, such as its GPU type
36-
and count.
35+
Estimated fraction from 0 to 1 of endpoint traffic currently routed to this
36+
deployment.
3737
"""
3838

3939
model: str
@@ -73,10 +73,10 @@ class EndpointDeploymentSummary(BaseModel):
7373
desired_replicas: Optional[int] = FieldInfo(alias="desiredReplicas", default=None)
7474
"""Number of replicas the autoscaler currently wants across all regions."""
7575

76-
estimated_effective_traffic_share: Optional[float] = FieldInfo(alias="estimatedEffectiveTrafficShare", default=None)
76+
hardware: Optional[str] = None
7777
"""
78-
Estimated fraction from 0 to 1 of endpoint traffic currently routed to this
79-
deployment.
78+
Hardware configuration selected by the deployment's config, such as its GPU type
79+
and count.
8080
"""
8181

8282
ready_replicas: Optional[int] = FieldInfo(alias="readyReplicas", default=None)

0 commit comments

Comments
 (0)