mckaywrigley / ai-code-translator

Use AI to translate code from one language to another.
https://ai-code-translator.vercel.app
3.9k stars 575 forks source link

key not accepted #10

Open shortthefomo opened 1 year ago

shortthefomo commented 1 year ago

tried x4 to add the key from openai https://platform.openai.com/account/api-keys and it fails maybe because the keuy i get is only got v4? have no idea.

yazinsai commented 1 year ago

This usually happens when you don't have a credit card added to your OpenAI account. Adding one should resolve the issue

CamoCatX commented 1 year ago

@lathanbritz If you are unable to get the API key to work, then try these steps:

  1. Create a new key, copy that.
  2. Paste the key into where it asks you to.
  3. Select "GPT-3.5"
  4. Try to translate code now, I noticed that code translation is more accurate when it is in more used programming languages. (Python > coffee script)

If it still did not work then go to this URL: https://chat.openai.com/chat and see if you chat directly. If you can't, then, create a new account and try to use that API key. Hope that helps.