Skip to content

pafry7/anki-gpt-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Anki flashcards for learning languages

GPT3 + Anki

How to use?

  1. Setup Anki-Connect: docs or screen
  2. Clone the repo
  3. Fill in .env.local file with data:
OPEN_AI_API_KEY=example
ANKI_CONNECT_KEY=example
  1. Make sure deno is installed
  2. Run from shell, providing released version as an argument.
deno run --allow-env --allow-net --allow-read main.ts

Configuration

You can pass additional flags:

  --deck       Name of the deck to which you want to add flashcards (default: EnglishAI)
  --file       Name of the file containg the words to be translated (default: list.txt)
  --language   Language into which you want to translate the words (default: polish)

Example:

deno run --allow-env --allow-net --allow-read main.ts --file example_file.txt --deck MyDeck --language Spanish

To change the language of the words in the file, edit the prompt. To change the Anki's card model, edit the MODEL variable and property fields in body sent to Anki-Connect

Added flashcard

added card

About

Create Anki flashcards with GPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published