feat: ✨ 新增用户模型查询
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { GetSessionListVO } from './types';
|
||||
import { get } from '@/utils/request';
|
||||
|
||||
// 获取当前用户的模型列表
|
||||
export function getModelList() {
|
||||
return get<GetSessionListVO[]>('/system/model/modelList');
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// 查询用户模型列表返回的数据结构
|
||||
export interface GetSessionListVO {
|
||||
id?: number;
|
||||
category?: string;
|
||||
modelName?: string;
|
||||
modelDescribe?: string;
|
||||
modelPrice?: number;
|
||||
modelType?: string;
|
||||
modelShow?: string;
|
||||
systemPrompt?: string;
|
||||
apiHost?: string;
|
||||
apiKey?: string;
|
||||
remark?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user