HyeonseoNam / auto-classifier

Auto classification plugin for Obsidian using ChatGPT.
MIT License
81 stars 9 forks source link

Test API call = Error: API is not working #9

Closed cole21771 closed 12 months ago

cole21771 commented 12 months ago

I've tried multiple API keys and it always seems to fail with the same error and no details. Did they change the API response maybe and this needs to be updated to work with it?

HyeonseoNam commented 12 months ago

Hi @cole21771 !

Some people have experienced the same issue where their payment method was not properly registered in Payment. If the payment information is initialized or not entered, the API will not work even if you have API keys.

Please check here at https://platform.openai.com/account/billing/overview first, and if the problem persists, please leave a screenshot (the error what you see) here.

cole21771 commented 12 months ago

Thanks for the quick response! Yup, that was the issue!

You should add a check for the error message about billing and change the message to the user. Or log out the actual error from chat gpt somewhere accessible instead of throwing it away so it's clear what the issue is.

HyeonseoNam commented 12 months ago

It's a relief that the problem has been caught.

Yes, I'm considering ways to track errors as they occur. This case will be a good reference. Thank you!