fix: custom backend and versions ux
This commit is contained in:
@@ -144,7 +144,7 @@ export const frameworks = [
|
||||
];
|
||||
|
||||
export const yamlTemplate = `# backend configuration template
|
||||
backend_name: my-backend
|
||||
backend_name: my-backend-custom
|
||||
description: this is my-backend
|
||||
default_version: v0.5.1
|
||||
health_check_path: /v1/models
|
||||
@@ -152,11 +152,11 @@ default_backend_param:
|
||||
- --host
|
||||
default_run_command: myBackend serve {{model_path}} --port {{port}}
|
||||
version_configs:
|
||||
v0.0.1-custom:
|
||||
v0.0.1:
|
||||
image_name: lm/mybackend:latest
|
||||
run_command: myBackend serve {{model_path}} --port {{port}}
|
||||
custom_framework: cuda
|
||||
v0.0.2-custom:
|
||||
v0.0.2:
|
||||
image_name: lm/mybackend:test
|
||||
run_command:
|
||||
custom_framework:
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"properties": {
|
||||
"backend_name": {
|
||||
"type": "string",
|
||||
"pattern": "^-custom$",
|
||||
"description": "backend name",
|
||||
"severity": "error"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user