feat: 参考答案图片上传 + AI提示词分有无标准答案图片两种流程
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user