piazzatron / anki-smart-notes

Superchange your anki flashcards with ✨AI✨
GNU General Public License v3.0
8 stars 2 forks source link

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

Closed gianni1969420 closed 2 weeks ago

gianni1969420 commented 2 weeks ago

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

piazzatron commented 2 weeks ago

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.

gianni1969420 commented 2 weeks ago

Hello,

Here is a screenshot. Thank you for your prompt response!

Jonathan

Στις Τετ 12 Ιουν 2024 στις 2:25 μ.μ., ο/η Michael Piazza < @.***> έγραψε:

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.

— Reply to this email directly, view it on GitHub https://github.com/piazzatron/anki-smart-notes/issues/2#issuecomment-2163749054, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HHBWOFE5RTVDL7L5GCC3ZHCODZAVCNFSM6AAAAABJG25YROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTG42DSMBVGQ . You are receiving this because you authored the thread.Message ID: @.***>

piazzatron commented 2 weeks ago

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

gianni1969420 commented 2 weeks ago

Hi Mike,The error message is as follows: “ Error: 404, message='Not Found', url=URL('https://api.openai.com/v1/chat/ completions)” I can still post a screenshot if need be in the morning. Thanks! El jun 13, 2024, a la(s) 10:42 p.m., Michael Piazza @.***> escribió: Hi Jonathan – I can't see the screenshot, I think you have to post it directly on Github here versus replying via email!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

piazzatron commented 2 weeks ago

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?

gianni1969420 commented 2 weeks ago

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.

piazzatron commented 2 weeks ago

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?

gianni1969420 commented 2 weeks ago

I am located in the US

Στις Παρ 14 Ιουν 2024 στις 1:32 μ.μ., ο/η Michael Piazza < @.***> έγραψε:

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

— Reply to this email directly, view it on GitHub https://github.com/piazzatron/anki-smart-notes/issues/2#issuecomment-2168557533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HHBWW7QXCNTCEESIMA7DZHMZKDAVCNFSM6AAAAABJG25YROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGU2TONJTGM . You are receiving this because you authored the thread.Message ID: @.***>

gianni1969420 commented 2 weeks ago

But when I switch to GPT3.5 i get this "

Smart Notes error: OpenAI rate limit exceeded. Wait a few minutes and try again".

Chat GPT works fine for me normally.

Στις Παρ 14 Ιουν 2024 στις 4:11 μ.μ., ο/η Ioannis Mixelvis < @.***> έγραψε:

I am located in the US

Στις Παρ 14 Ιουν 2024 στις 1:32 μ.μ., ο/η Michael Piazza < @.***> έγραψε:

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

— Reply to this email directly, view it on GitHub https://github.com/piazzatron/anki-smart-notes/issues/2#issuecomment-2168557533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6HHBWW7QXCNTCEESIMA7DZHMZKDAVCNFSM6AAAAABJG25YROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGU2TONJTGM . You are receiving this because you authored the thread.Message ID: @.***>

piazzatron commented 2 weeks ago

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.

gianni1969420 commented 2 weeks ago

I have ChatGPT premium. Would I need to pay separately for the keys? None of the models work, even 3.5. I tried a clean install of Anki. El jun 15, 2024, a la(s) 1:50 a.m., Michael Piazza @.***> escribió: 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

piazzatron commented 2 weeks ago

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.