rating when ai is steaming
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-06-11 19:53:12 -06:00
parent 05ecf6bebf
commit a15b3d9c76
4 changed files with 156 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import type {
ShowcaseSubmissionLookupOut,
ShowcaseDetail,
PromptRound,
RandomRatingItem,
} from "./utils/type"
import { BASE_URL, STORAGE_KEY } from "./utils/const"
@@ -237,6 +238,13 @@ export const Submission = {
return res.data
},
async randomForRating(excludeId?: string) {
const res = await http.get("/submission/random-for-rating/", {
params: excludeId ? { exclude_id: excludeId } : {},
})
return res.data as RandomRatingItem | null
},
async updateFlag(id: string, flag: FlagType) {
const res = await http.put(`/submission/${id}/flag`, { flag })
return res.data