fix:增加用户中心,完成Apikey功能页,增加角色工具方法
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import type { GetSessionListVO } from './types';
|
||||
import { get } from '@/utils/request';
|
||||
import { get, post } from '@/utils/request';
|
||||
|
||||
// 获取当前用户的模型列表
|
||||
export function getModelList() {
|
||||
// return get<GetSessionListVO[]>('/system/model/modelList');
|
||||
return get<GetSessionListVO[]>('/ai-chat/model').json();
|
||||
}
|
||||
// 申请ApiKey
|
||||
export function applyApiKey() {
|
||||
return post<any>('/token').json();
|
||||
}
|
||||
// 获取ApiKey
|
||||
export function getApiKey() {
|
||||
return get<any>('/token').json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user