GPT3 + Anki
OPEN_AI_API_KEY=example
ANKI_CONNECT_KEY=example
- Make sure deno is installed
- Run from shell, providing released version as an argument.
deno run --allow-env --allow-net --allow-read main.ts
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