Skip to content

Commit 5b7bfd0

Browse files
committed
feat: Add optional name field in revision
1 parent 427e7f2 commit 5b7bfd0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

docs/manager/graphql-reference/supergraph.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ directive @link(url: String, as: String, for: link__Purpose, import: [link__Impo
2727
input AddModelRevisionInput
2828
@join__type(graph: STRAWBERRY)
2929
{
30+
name: String = null
3031
deploymentId: ID!
3132
image: ImageInput!
3233
modelRuntimeConfig: ModelRuntimeConfigInput!
@@ -1146,6 +1147,7 @@ type CreateModelDeploymentPayload
11461147
input CreateModelRevisionInput
11471148
@join__type(graph: STRAWBERRY)
11481149
{
1150+
name: String = null
11491151
image: ImageInput!
11501152
modelRuntimeConfig: ModelRuntimeConfigInput!
11511153
modelMountConfig: ModelMountConfigInput!

docs/manager/graphql-reference/v2-schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schema @link(url: "https://specs.apollo.dev/federation/v2.7", import: ["@externa
88

99
"""Added in 25.13.0"""
1010
input AddModelRevisionInput {
11+
name: String = null
1112
deploymentId: ID!
1213
image: ImageInput!
1314
modelRuntimeConfig: ModelRuntimeConfigInput!
@@ -173,6 +174,7 @@ type CreateModelDeploymentPayload {
173174

174175
"""Added in 25.13.0"""
175176
input CreateModelRevisionInput {
177+
name: String = null
176178
image: ImageInput!
177179
modelRuntimeConfig: ModelRuntimeConfigInput!
178180
modelMountConfig: ModelMountConfigInput!

src/ai/backend/manager/api/gql/model_deployment/model_revision.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ class ExtraMountInput:
632632

633633
@strawberry.input(description="Added in 25.13.0")
634634
class CreateModelRevisionInput:
635+
name: Optional[str] = None
635636
image: ImageInput
636637
model_runtime_config: ModelRuntimeConfigInput
637638
model_mount_config: ModelMountConfigInput
@@ -640,6 +641,7 @@ class CreateModelRevisionInput:
640641

641642
@strawberry.input(description="Added in 25.13.0")
642643
class AddModelRevisionInput:
644+
name: Optional[str] = None
643645
deployment_id: ID
644646
image: ImageInput
645647
model_runtime_config: ModelRuntimeConfigInput

0 commit comments

Comments
 (0)