Skip to content

Unable to Set OpenAI API Key #258

Open
@RayChang

Description

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.

2023-12-01 11 30 27

Expected Behavior: Should be able to generate commit messages normally through aicommits.

aicommits version

1.11.0

Environment

System:
  OS: macOS 14.1.1
  CPU: Apple M1 Max
  Shell: /bin/zsh (5.9)
Binaries:
  Node: v18.18.2 ~/.nvm/versions/node/v18.18.2/bin/node
  npm: 9.8.1 ~/.nvm/versions/node/v18.18.2/bin/npm
  pnpm: 8.11.0 /opt/homebrew/bin/pnpm

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions