fix: custom backend and versions ux

This commit is contained in:
jialin
2025-11-04 13:37:53 +08:00
parent 9be465a8cf
commit 23b7936924
19 changed files with 247 additions and 104 deletions
+3 -3
View File
@@ -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"
},