mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: switch to meta and params, remove source
This commit is contained in:
@@ -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