piazzatron/anki-smart-notes

Keep getting the "cant reference other smart fields" error when trying to map notes

Closed this issue · 12 comments

Hello, Every time I attempt to map new note fields i get the above issue. How could I solve it? Thank!

Hi - sorry you're experiencing this. I'm not sure if it's a bug or just unclear documentation on my part; you can't reference another AI generated field in a prompt.

Do you mind sending me a screenshot of the prompt you're trying to use, the card's fields, and any existing prompts you have? I'll investigate.

Hi Jonathan – I can't see the screenshot, I think you have to post it directly on Github here versus replying via email!

Wow, you're getting a 404 trying to hit OpenAI 👀.

Is this a different error than the original error about setting a smart field as a target? Screenshots would def help, thx. You were able to get set up properly with an API key?

Screenshot 2024-06-14 084108
Hello, yes, this is different. I have tried with several API keys that I have generated and am not running a VPN.

Got it, thanks for the screenshot. Investigating today. What region are you in? Want to ensure OpenAI is enabled for you.

Edit: also, is there anything special about values Palabra field? Your prompt looks fine to me, I'm wondering if there are some special characters in the prompt that aren't escaped properly... any symbols, funny punctuation, etc?

Edit2: Anything interesting about your network setup? You're not behind some firewall that's disabling traffic to OpenAI?

Oh, interesting. If you wait a few minutes with GPT-3.5, does it eventually work?

Have you paid for your open AI key? Only paid accounts can use GPT4 and the like.

Investigated this a bit more – you'll need to pay for an API key, apparently there's no OpenAI free tier, despite their docs suggesting otherwise. It's different than paying for ChatGPT premium, unfortunately. Will update the docs for the addon to reflect this.

Going to close this one out, feel free to reopen if you're still running into issues.