diff options
author | bobzel <zzzman@gmail.com> | 2025-01-29 15:44:07 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-01-29 15:44:07 -0500 |
commit | 573a052cc4778ef4df53e9911db07e998df06281 (patch) | |
tree | af4a1498dbef95d8729da0ae1ea82bcf4d352c1c /src | |
parent | 45aa1b54ab37d821257fb00b3be5ef5eca03ef2c (diff) |
fixing card quiz mode
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 63130d056..da0cbea7a 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -158,7 +158,7 @@ export class GPTPopup extends ObservableReactComponent<object> { const questionText = 'Question: ' + StrCast(selected.gptInputText); const rubricText = 'Rubric: ' + StrCast(selected.gptRubric); - const queryText = questionText + ' UserAnswer: ' + this.quizAnswer + '. ' + 'Rubric' + rubricText; + const queryText = questionText + ' UserAnswer: ' + this.quizAnswer + '. ' + rubricText; try { const res = await gptAPICall(queryText, GPTCallType.QUIZ); @@ -189,7 +189,7 @@ export class GPTPopup extends ObservableReactComponent<object> { generateRubric = async (inputText: string, doc: Doc) => { try { const res = await gptAPICall(inputText, GPTCallType.RUBRIC); - doc['gptRubric'] = res; + doc.gptRubric = res; return res; } catch (err) { console.error('GPT call failed', err); |