zhou zhou
昨天 b0728aba5c01842e24da3cff04e44be06c6bb655
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import request from "@/utils/request";
 
export const getAiObserveStats = async () => {
    const res = await request.get("aiCallLog/stats");
    const { code, msg, data } = res.data;
    if (code === 200) {
        return data;
    }
    throw new Error(msg || "获取 AI 观测统计失败");
};
 
export const getAiCallLogMcpLogs = async (callLogId) => {
    const res = await request.get(`aiCallLog/${callLogId}/mcpLogs`);
    const { code, msg, data } = res.data;
    if (code === 200) {
        return data || [];
    }
    throw new Error(msg || "获取 MCP 调用日志失败");
};