feat: 参考答案图片上传 + AI提示词分有无标准答案图片两种流程

This commit is contained in:
2026-07-16 10:07:09 +08:00
parent 499a55af77
commit 25b8cfb787
6 changed files with 113 additions and 15 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ export interface QuestionItem {
maxScore: number
referenceAnswer: string
rubric: string
referenceAnswerImage?: string
}
export interface GradeResult {
@@ -56,7 +57,7 @@ export interface ElectronAPI {
onCompleted: (callback: (base64: string) => void) => () => void
}
ai: {
grade: (data: { imageBase64: string; rubric: string; apiConfig: ApiConfig; maxScore?: number; referenceAnswer?: string; questionTitle?: string }) => Promise<GradeResult>
grade: (data: { imageBase64: string; rubric: string; apiConfig: ApiConfig; maxScore?: number; referenceAnswer?: string; questionTitle?: string; referenceAnswerImage?: string }) => Promise<GradeResult>
}
settings: {
get: () => Promise<AppSettings>