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
I reinstalled aicommits globally using pnpm (8.11.0) and added the OpenAI_KEY in the settings. However, when I attempted to make a git commit using aicommits, I encountered an OpenAI API Error: 401 - Unauthorized message.
Expected Behavior: Should be able to generate commit messages normally through aicommits.
I am encountering this bug too. When I use aicommits config set to set the API key, it sets it in the .aicommits file in my home directory. However, it is not preferring that setting over an ENV variable. I have an ENV variable set (OPENAI_KEY) that is empty string, and it is attempting to use that instead of the value set in .aicommits.
I have the same issue and I still can't find from where the OPENAI_KEY variable is set. And .aicommits config does not seem to be taken into account with my new OpenAI API key.
Bug description
I reinstalled aicommits globally using pnpm (8.11.0) and added the OpenAI_KEY in the settings. However, when I attempted to make a git commit using aicommits, I encountered an OpenAI API Error: 401 - Unauthorized message.
Expected Behavior: Should be able to generate commit messages normally through aicommits.
aicommits version
1.11.0
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: