cadrianxyz / obsidian-auto-anki

Using AI to automate card creation for Spaced Repetion in Anki
MIT License
41 stars 10 forks source link

Generate flashcards in different languages #15

Open vlyr opened 1 year ago

vlyr commented 1 year ago

Hey, this tool is exactly what I need. It works great. However, I have one problem with it though - I'd be using it with my native language, Finnish. Would there be an easy way to change the prompt or something so that the AI outputs the flashcards in Finnish (or any other language than English for that matter)?

vlyr commented 1 year ago

I solved this by just manually editing the prompt in the code.

kafkazov commented 11 months ago

I solved this by just manually editing the prompt in the code.

hello,can you please tell me how to edit the prompt in the code and make the plugin to generate flashcards in diffrent languages? thanks a lot

cadrianxyz commented 10 months ago

Hey @kafkazov, you should be able to edit any of the files in any plugin (including this) by going into Obsidian's plugin folders. You can look up how to locate your plugin folder (it should be in the .obsidian folder where you store your vault).

The prompts are specifically located in src/utils/gpt.ts, inside the createPrompt function. See these lines. You can edit them to your liking here.