fix: 增加对话token显示,token消耗统计
This commit is contained in:
@@ -19,3 +19,12 @@ export function getApiKey() {
|
||||
export function getRechargeLog() {
|
||||
return get<any>('/recharge/account').json();
|
||||
}
|
||||
|
||||
// 查询用户近7天token消耗
|
||||
export function getLast7DaysTokenUsage() {
|
||||
return get<any>('/usage-statistics/last7Days-token-usage').json();
|
||||
}
|
||||
// 查询用户token消耗各模型占比
|
||||
export function getModelTokenUsage() {
|
||||
return get<any>('/usage-statistics/model-token-usage').json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user