Anki add-on: Genai words definer

Addon removes all the HTML tags, repeating, starting and trailing spaces, brings text to lowercase of all the basic notes' fronts from a user specified deck. Addon gets user specified amount of basic notes from a user specified deck. Notes that have >300 characteres on their back considered already defined and are skipped without affecting the count. Addon then sends API requests to user specified Google Genai model with user specified amount of concurrent calls with the following prompt: "Define the word or phrase: {FRONT_OF_THE_NOTE} . Explain how it differs from its synonyms." The response is then written to the backs of corresponding basic notes. In order for extension to work you're required to create an environment variable named GOOGLE_GENAI_API_KEY with the API key as a value. As per this point in time, you can get a free API key on Google AI Studio website. It allows you to make 14400 requests to gemma-3n-e4b-it (default model for this addon) per day, 30 requests per minute. Definition process happens asynchronously in background, you may use Anki app during the action. You can check out the source code before downloading: https://github.com/staffronik/Genai-definer-Anki-addon

GitHub repository: staffronik/genai-definer-anki-addon
Repository description: Anki addon for defining fronts of the notes using free LLMs.
Languages: Python