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 调用日志失败"); };