Skip to content

Commit 289160f

Browse files
authored
Merge pull request #34 from taniki/patch-1
fix a minor typo
2 parents 4df156d + 8f5fb86 commit 289160f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ollama.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ export async function askAI(prompt: string, context: string) {
277277

278278
export async function convertToFlashCard(uuid: string, blockContent: string) {
279279
try {
280-
const questionBlock = await logseq.Editor.insertBlock(uuid, "⌛Genearting question....", { before: false })
281-
const answerBlock = await logseq.Editor.insertBlock(questionBlock!.uuid, "⌛Genearting answer....", { before: false })
280+
const questionBlock = await logseq.Editor.insertBlock(uuid, "⌛Generating question....", { before: false })
281+
const answerBlock = await logseq.Editor.insertBlock(questionBlock!.uuid, "⌛Generating answer....", { before: false })
282282
const question = await promptLLM(`Create a question for a flashcard. Provide the question only. Here is the knowledge to check:\n ${blockContent}`)
283283
const answer = await promptLLM(`Given the question ${question} and the context of ${blockContent} What is the answer? be as brief as possible and provide the answer only.`)
284284
await logseq.Editor.updateBlock(questionBlock!.uuid, `${question} #card`)

0 commit comments

Comments
 (0)