Skip to content

Commit

Permalink
chore(model): update model hardware prop type (#536)
Browse files Browse the repository at this point in the history
Because

- unify hardware prop type

This commit

- update model hardware prop type

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
heiruwu and droplet-bot authored Dec 12, 2024
1 parent 50239ff commit 99c515c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions model/model/v1alpha/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ message ReadinessResponse {
// Region describes the supported cloud provider and regions, with
// their supported GPU respectively.
message Region {
// Concate name of provider and region
// Concatenate name of provider and region
string region_name = 1;
// Hardware describes the available hardware types in this region
repeated Hardware hardware = 2;
Expand Down Expand Up @@ -200,8 +200,8 @@ message Model {
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
];
// Hardware of choice to serve the model.
string hardware = 19 [(google.api.field_behavior) = REQUIRED];
// Deleted Fields.
reserved 19;
// README holds the model documentation.
optional string readme = 20 [(google.api.field_behavior) = OPTIONAL];
// A link to the source code of the model (e.g. to a GitHub repository).
Expand All @@ -228,6 +228,8 @@ message Model {
repeated string versions = 31 [(google.api.field_behavior) = OUTPUT_ONLY];
// Statistic data.
Stats stats = 32 [(google.api.field_behavior) = OUTPUT_ONLY];
// Hardware of choice to serve the model.
Hardware hardware = 33 [(google.api.field_behavior) = REQUIRED];
}

// ListModelsRequest represents a request to list models.
Expand Down
9 changes: 5 additions & 4 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8990,9 +8990,6 @@ definitions:
region:
type: string
description: Region of choice for the particular provider to host the model.
hardware:
type: string
description: Hardware of choice to serve the model.
readme:
type: string
description: README holds the model documentation.
Expand Down Expand Up @@ -9038,6 +9035,10 @@ definitions:
readOnly: true
allOf:
- $ref: '#/definitions/Model.Stats'
hardware:
description: Hardware of choice to serve the model.
allOf:
- $ref: '#/definitions/Hardware'
title: |-
Model represents an AI model, i.e. a program that performs tasks as decision
making or or pattern recognition based on its training data
Expand Down Expand Up @@ -9985,7 +9986,7 @@ definitions:
properties:
regionName:
type: string
title: Concate name of provider and region
title: Concatenate name of provider and region
hardware:
type: array
items:
Expand Down

0 comments on commit 99c515c

Please sign in to comment.