chore: adjust deployment modal form

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent ed49e03802
commit 29b74f85c5
39 changed files with 1574 additions and 786 deletions
@@ -9,6 +9,7 @@ interface FormContextProps {
sizeOptions?: Global.BaseOption<number>[];
quantizationOptions?: Global.BaseOption<string>[];
modelFileOptions?: any[];
gpuOptions?: any[];
onSizeChange?: (val: number) => void;
onQuantizationChange?: (val: string) => void;
onValuesChange?: (changedValues: any, allValues: any) => void;
+17 -4
View File
@@ -83,10 +83,6 @@ export const ollamaModelOptions = [
];
export const backendTipsList = [
{
title: 'llama-box',
tips: 'models.form.backend.llamabox'
},
{
title: 'vLLM',
tips: 'models.form.backend.vllm'
@@ -537,3 +533,20 @@ export const getBackendParamsTips = (backend: string) => {
version: 'v0.0.13'
};
};
export const scheduleTypeTips = [
{
title: {
text: 'models.form.scheduletype.auto',
locale: true
},
tips: 'models.form.scheduletype.auto.tips'
},
{
title: {
text: 'models.form.scheduletype.manual',
locale: true
},
tips: 'models.form.scheduletype.manual.tips'
}
];
+5 -1
View File
@@ -56,7 +56,9 @@ export interface FormData {
model_scope_model_id?: string;
model_scope_file_path?: string;
gpu_selector?: {
gpu_ids: string[];
gpu_ids?: string[];
gpu_type?: string;
gpu_count?: number;
};
placement_strategy?: string;
cpu_offloading?: boolean;
@@ -65,6 +67,8 @@ export interface FormData {
name: string;
replicas: number;
description: string;
optimize_long_prompt: boolean;
enable_speculative_decoding: boolean;
}
interface ComputedResourceClaim {