refac: switch to meta and params, remove source
This commit is contained in:
1 parent
7ccef3e77a
commit
f21c8626d6
12 files changed
+70
-107
No files matched your search
@@ -227,16 +227,18 @@ export const getModelConfig = async (token: string): Promise<GlobalModelConfig>
|
||||
export interface ModelConfig {
|
||||
id: string;
|
||||
name: string;
|
||||
source: string;
|
||||
base_model?: string;
|
||||
meta: ModelMeta;
|
||||
base_model_id?: string;
|
||||
params: ModelParams;
|
||||
}
|
||||
|
||||
export interface ModelParams {
|
||||
export interface ModelMeta {
|
||||
description?: string;
|
||||
vision_capable?: boolean;
|
||||
}
|
||||
|
||||
export interface ModelParams {}
|
||||
|
||||
export type GlobalModelConfig = ModelConfig[];
|
||||
|
||||
export const updateModelConfig = async (token: string, config: GlobalModelConfig) => {
|
||||
|
||||
Reference in new issue
Block a user