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
└
You are not using the latest stable version of OpenCommit with new features and bug fixes.
Current version: 3.2.5. Latest version: 3.2.7.
🚀 To update run: npm i -g opencommit@latest.
┌ open-commit
�[?25l│
○ Counting staged files
�[999D�[2A�[J�[J│
◇ 1 staged files:
home/.chezmoiscripts/universal/run_before_05-system.sh.tmpl
�[?25h�[?25l│
○ Generating the commit message
�[999D�[2A�[J�[J│
◇ ✖ Failed to generate the commit message
�[?25hOpenAIError: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
at new OpenAI (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:63622:13)
at new OpenAiEngine (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:63745:21)
at getEngine (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:63864:14)
at generateCommitMessageByDiff (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:64404:20)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async generateCommitMessageFromGitDiff (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:64617:25)
at async trytm (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:64584:18)
at async commit (/Users/apple/.local/share/volta/tools/image/packages/opencommit/lib/node_modules/opencommit/out/cli.cjs:64786:35)
│
└ ✖ The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
0 commit comments