Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API key invalid and error thrown #748

Open
stanislavkozlovski opened this issue Aug 29, 2024 · 6 comments
Open

API key invalid and error thrown #748

stanislavkozlovski opened this issue Aug 29, 2024 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@stanislavkozlovski
Copy link

When I add the API key I get an error. It's freshly created from https://platform.openai.com/api-keys
image

When I try to chat with it, I get an error:
image

The full response is:

"{
    "error": {
        "message": "Incorrect API key provided: undefined. You can find your API key at https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": "invalid_api_key"
    }
}
"
@stanislavkozlovski
Copy link
Author

image

It seems like it's not adding it at all? But I do see it in the settings

image

@brianpetro
Copy link
Owner

brianpetro commented Aug 29, 2024

@stanislavkozlovski The API key setting can be found in the Smart Chat window, see this screenshot 🌴
Screenshot 2024-08-29 at 7 27 02 PM

@carsten0202
Copy link

I have a related problem, except I cannot enter my API Key, because nothing happens when I click the settings button indicated by the green arrow.

@christianngarcia christianngarcia added the help wanted Extra attention is needed label Aug 30, 2024
@brianpetro
Copy link
Owner

@carsten0202 does an error appear in the console logs when you click the button? 🌴

@carsten0202
Copy link

Yes. I get both an error when starting Obsidian and when clicking the button. It complains about port 37042 being in use. I would try changing it, but I can't find where to do that?

I've pulled a screenshot. The topmost errors are from startup, the one at the bottom is from when I click the settings button.

Screenshot 2024-09-03 141343

@AaronArt
Copy link

AaronArt commented Sep 4, 2024

In my case I even have the paid version of ChatGPT. There is an alert window that says the API is valid, but when I try to chat, it says API error and when I look to the console log , it says, invalid API. So???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants