DB-GPT/web/types/model.ts
云锋 94b51284e0
feat(datasource): Database connection Renewal (#2359)
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: ‘yanzhiyonggit config --global user.email git config --global user.name ‘yanzhiyong <zhiyong.yan@clife.cn>
2025-02-22 18:44:21 +08:00

52 lines
993 B
TypeScript

import { ConfigurableParams } from '@/types/common';
export type IModelData = {
chat_scene: string;
model_name: string;
worker_type: string;
host: string;
port: number;
manager_host: string;
manager_port: number;
healthy: boolean;
check_healthy: boolean;
prompt_template: string;
last_heartbeat: string;
stream_api: string;
nostream_api: string;
};
export type BaseModelParams = {
host: string;
port: number;
model: string;
worker_type: string;
delete_after: boolean | null;
params: any;
};
export type ModelParams = {
[key: string]: string | number | boolean;
};
export type StartModelParams = {
host: string;
port: number;
model: string;
worker_type: string;
params: ModelParams;
};
export type SupportModel = {
model: string;
path: string;
worker_type: string;
path_exist: boolean;
proxy: boolean;
enabled: boolean;
host: string;
port: number;
params: ConfigurableParams;
provider: string;
description: string;
};