aboutsummaryrefslogtreecommitdiff
path: root/src/ollama.tsx
diff options
context:
space:
mode:
authorOmar Magdy <99906646+omagdy7@users.noreply.github.com>2025-02-03 17:48:31 +0200
committerGitHub <noreply@github.com>2025-02-03 17:48:31 +0200
commit289160fdde9dfc7c3d7b117593776f65a9d8b3ad (patch)
treec1e3bbb3b9778d4933812cd17b0c9feca171cd4e /src/ollama.tsx
parent4df156d0510309d877fa0d7c6696079d542739e9 (diff)
parent8f5fb860c440c0c9552ffda65a9b44ab5e702892 (diff)
downloadollama-logseq-289160fdde9dfc7c3d7b117593776f65a9d8b3ad.tar.xz
ollama-logseq-289160fdde9dfc7c3d7b117593776f65a9d8b3ad.zip
Merge pull request #34 from taniki/patch-1
fix a minor typo
Diffstat (limited to 'src/ollama.tsx')
-rw-r--r--src/ollama.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ollama.tsx b/src/ollama.tsx
index ecc7565..7da5f8f 100644
--- a/src/ollama.tsx
+++ b/src/ollama.tsx
@@ -277,8 +277,8 @@ export async function askAI(prompt: string, context: string) {
export async function convertToFlashCard(uuid: string, blockContent: string) {
try {
- const questionBlock = await logseq.Editor.insertBlock(uuid, "⌛Genearting question....", { before: false })
- const answerBlock = await logseq.Editor.insertBlock(questionBlock!.uuid, "⌛Genearting answer....", { before: false })
+ const questionBlock = await logseq.Editor.insertBlock(uuid, "⌛Generating question....", { before: false })
+ const answerBlock = await logseq.Editor.insertBlock(questionBlock!.uuid, "⌛Generating answer....", { before: false })
const question = await promptLLM(`Create a question for a flashcard. Provide the question only. Here is the knowledge to check:\n ${blockContent}`)
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.`)
await logseq.Editor.updateBlock(questionBlock!.uuid, `${question} #card`)