You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine you've already defined an envVar called OPENAI_KEY, it will use it instead of the one defined in .aicommits. It's confusing. I would like to use the one in .aicommits.
I can add some more information, I kept getting a reponse like this :
{
"error": {
"message": "Incorrect API key provided: sk-dEQi4***************************************uraT. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
But the key I had in ~/.aicommits wasn't starting with DEQi, it was an entirely different key.
After runnning printenv | grep OPEN I found that I had no env var named "OPENAI_KEY" but I had an OPENAI_API_KEY, and this was what was picked up by aicommits instead of the correct OPENAI_KEY
Bug description
Imagine you've already defined an envVar called
OPENAI_KEY
, it will use it instead of the one defined in.aicommits
. It's confusing. I would like to use the one in.aicommits
.aicommits version
1.11.0
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: