fix: remove input box for gpus_per_replica

This commit is contained in:
jialin
2025-10-30 16:38:55 +08:00
parent e9fa3e3aa3
commit b733b3615d
3 changed files with 18 additions and 51 deletions
+2 -22
View File
@@ -326,12 +326,13 @@ export const modelLabels = [
{ label: 'Embedding', value: 'embedding_only' }
];
// do not trigger form check compatibility when these fields change
// do not trigger form check compatibility when these fields change, maybe triggered manually
export const DO_NOT_TRIGGER_CHECK_COMPATIBILITY = [
'model_scope_model_id',
'huggingface_repo_id',
'huggingface_filename',
'model_scope_file_path',
'replicas',
'name',
'description',
'env',
@@ -356,27 +357,6 @@ export const DO_NOT_TRIGGER_CHECK_COMPATIBILITY = [
// ignore to compare old and new data when these fields change in updating model
export const DO_NOT_NOTIFY_RECREATE = ['categories', 'replicas', 'description'];
// if some fields need to trigger manual check, add them here
export const TRIGGER_CHECK_MANUAL = [
'model_scope_model_id',
'huggingface_repo_id',
'huggingface_filename',
'model_scope_file_path',
'description',
'source',
'worker_selector',
'backend_parameters',
'local_path',
'backend_version',
'ollama_library_model_name',
'backend',
'gpu_selector',
'categories',
'env',
'replicas',
'extended_kv_cache.enabled'
];
export const formFields = [
'name',
'model_scope_model_id',