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
+2 -10
View File
@@ -1,3 +1,4 @@
import { BackendOption } from '@/pages/llmodels/config/types';
import { atom, getDefaultStore } from 'jotai';
// models expand keys: create, update , delete,
@@ -24,13 +25,4 @@ export const clusterListAtom = atom<
}[]
>([]);
export const backendOptionsAtom = atom<
{
value: string;
label: string;
default_backend_param: string[];
default_version: string;
isBuiltIn: boolean;
versions: { label: string; value: string }[];
}[]
>([]);
export const backendOptionsAtom = atom<BackendOption[]>([]);