File tree Expand file tree Collapse file tree
docs/manager/graphql-reference
manager/api/gql/deployment/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Allow ` ModelMountConfigInput.definition_path ` to be omitted so the server auto-detects ` model-definition.yaml ` or ` model-definition.yml ` in the model vfolder
Original file line number Diff line number Diff line change @@ -9558,7 +9558,7 @@ input ModelMountConfigInput
95589558{
95599559 vfolderId: ID!
95609560 mountDestination: String!
9561- definitionPath: String!
9561+ definitionPath: String = null
95629562}
95639563
95649564"""
Original file line number Diff line number Diff line change @@ -6337,7 +6337,7 @@ type ModelMountConfig {
63376337input ModelMountConfigInput {
63386338 vfolderId : ID !
63396339 mountDestination : String !
6340- definitionPath : String !
6340+ definitionPath : String = null
63416341}
63426342
63436343"""
Original file line number Diff line number Diff line change @@ -238,7 +238,14 @@ class ModelMountConfigInput(BaseRequestModel):
238238
239239 vfolder_id : VFolderUUID = Field (description = "Model vfolder ID" )
240240 mount_destination : str = Field (default = "/models" , description = "Mount destination path" )
241- definition_path : str = Field (description = "Model definition file path within vfolder" )
241+ definition_path : str | None = Field (
242+ default = None ,
243+ description = (
244+ "Optional model definition file path within vfolder. "
245+ "When omitted, the server auto-detects `model-definition.yaml` or "
246+ "`model-definition.yml`."
247+ ),
248+ )
242249
243250
244251class ModelRuntimeConfigInput (BaseRequestModel ):
Original file line number Diff line number Diff line change @@ -202,7 +202,14 @@ class ModelMountConfigInput(BaseRequestModel):
202202
203203 vfolder_id : VFolderUUID = Field (description = "VFolder ID for the model" )
204204 mount_destination : str = Field (description = "Mount destination path inside container" )
205- definition_path : str = Field (description = "Path to model definition file" )
205+ definition_path : str | None = Field (
206+ default = None ,
207+ description = (
208+ "Optional path to the model definition file within the model vfolder. "
209+ "When omitted, the server auto-detects `model-definition.yaml` or "
210+ "`model-definition.yml`."
211+ ),
212+ )
206213
207214
208215class ExtraVFolderMountInput (BaseRequestModel ):
Original file line number Diff line number Diff line change @@ -787,7 +787,7 @@ class ModelRuntimeConfigInput(PydanticInputMixin[ModelRuntimeConfigInputDTO]):
787787class ModelMountConfigInput (PydanticInputMixin [ModelMountConfigInputDTO ]):
788788 vfolder_id : ID
789789 mount_destination : str
790- definition_path : str
790+ definition_path : str | None = None
791791
792792
793793@gql_pydantic_input (
You can’t perform that action at this time.
0 commit comments