stream returns
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-09-24 18:28:42 +08:00
parent 0a9d49b526
commit 0b652aa301
6 changed files with 197 additions and 29 deletions

View File

@@ -2,12 +2,10 @@ import { DIFFICULTY } from "utils/constants"
import { getACRate } from "utils/functions"
import http from "utils/http"
import {
DetailsData,
Problem,
Submission,
SubmissionListPayload,
SubmitCodePayload,
WeeklyData,
} from "utils/types"
function filterResult(result: Problem) {
@@ -258,13 +256,3 @@ export function getAIWeeklyData(
) {
return http.get("ai/weekly", { params: { end, duration, username } })
}
export function getAIAnalysis(
detailsData: DetailsData,
weeklyData: WeeklyData[],
) {
return http.post("ai/analysis", {
details: detailsData,
weekly: weeklyData,
})
}