trigaten / Learn_Prompting

Prompt Engineering, Generative AI, and LLM Guide by Learn Prompting | Join our discord for the largest Prompt Engineering learning community
https://learnprompting.org
Other
4.26k stars 632 forks source link

Issue: embeds not working #1019

Closed fonsecagabriella closed 1 year ago

fonsecagabriella commented 1 year ago

Embeds keep returning error for the API key, although the key is valid (tested on other applications, works fine).

Screenshot 2023-07-24 at 12 36 49
trigaten commented 1 year ago

Can you inspect element and send me the error in terminal? I cannot reproduce this problem. Can you also try a new key?

Others have reported this issue as well.

fonsecagabriella commented 1 year ago
Screenshot 2023-07-24 at 20 41 58

Does this help? The key is not a problem, I tried several 3 ones (one created just for this, one that I am using in a web app that is running in Google App Service), they don't work 😕

fonsecagabriella commented 1 year ago

I tried in different browsers too (Chrome, Firefox, Safari)

trigaten commented 1 year ago

I believe this is related to only some people having access to gpt-4, looking into this further.

trigaten commented 1 year ago

I found that the error was caused by the embed verifying API keys by checking if the user had access to the first model in the MODELS list, which happened to be gpt-4. Since not everyone had access, it only failed for some people.

I have pushed a fix, thank you very much!