ai-dictionary

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 2 Imported by: 0

README

AI Dictionary

Ask AI to explain the word in a sentence and save the definition to Anki.

Ask AI to explain the word in a sentence

Requirements
  • LLM API Key
Usage
  1. Open terminal, and then set environment variables
    # Claude, Deepseek, Gemini, Ollama, OpenAI, etc.
    export OPENAI_BASE_URL=https://***; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=***
    
  2. Download latest release, and then run command ai-dictionary
Example
Screenshot 2025-03-27 at 14 02 34

Save the definition to Anki

Requirements
  • Anki Desktop
  • AnkiConnect
Usage
  1. Open Anki, create deck AI Dictionary.
Screenshot 2025-03-26 at 14 37 54
  1. Click Tools -> Manage Note Types from Anki menu, add note type AI Dictionary.
Screenshot 2025-03-26 at 14 38 43
  1. Add card template.
Screenshot 2025-03-26 at 14 39 09
Example
Screenshot 2025-03-26 at 12 03 43

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL