2025-06-17 22:37:37 +08:00
|
|
|
import type { GetSessionListVO } from './types';
|
2025-07-04 00:12:26 +08:00
|
|
|
import { get, post } from '@/utils/request';
|
2025-06-17 22:37:37 +08:00
|
|
|
|
|
|
|
|
// 获取当前用户的模型列表
|
|
|
|
|
export function getModelList() {
|
2025-06-19 23:45:22 +08:00
|
|
|
// return get<GetSessionListVO[]>('/system/model/modelList');
|
2025-06-28 23:07:32 +08:00
|
|
|
return get<GetSessionListVO[]>('/ai-chat/model').json();
|
2025-06-17 22:37:37 +08:00
|
|
|
}
|
2025-07-04 00:12:26 +08:00
|
|
|
// 申请ApiKey
|
|
|
|
|
export function applyApiKey() {
|
|
|
|
|
return post<any>('/token').json();
|
|
|
|
|
}
|
|
|
|
|
// 获取ApiKey
|
|
|
|
|
export function getApiKey() {
|
|
|
|
|
return get<any>('/token').json();
|
|
|
|
|
}
|
2025-07-08 00:29:41 +08:00
|
|
|
|
|
|
|
|
// 查询充值记录
|
|
|
|
|
export function getRechargeLog() {
|
|
|
|
|
return get<any>('/recharge/account').json();
|
|
|
|
|
}
|