mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-13 07:38:01 -05:00
Compare commits
3 Commits
master
...
378_fix_ho
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eaf5e2ad7 | ||
|
|
47eb59d665 | ||
|
|
31fdd8473b |
12758
out/cli.cjs
12758
out/cli.cjs
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -44,9 +44,10 @@ export const prepareCommitMessageHook = async (
|
|||||||
!config.OCO_ANTHROPIC_API_KEY &&
|
!config.OCO_ANTHROPIC_API_KEY &&
|
||||||
!config.OCO_AZURE_API_KEY
|
!config.OCO_AZURE_API_KEY
|
||||||
) {
|
) {
|
||||||
throw new Error(
|
outro(
|
||||||
'No OPEN_AI_API or OCO_ANTHROPIC_API_KEY or OCO_AZURE_API_KEY exists. Set your key in ~/.opencommit'
|
'No OCO_OPENAI_API_KEY or OCO_ANTHROPIC_API_KEY or OCO_AZURE_API_KEY exists. Set your key via `oco config set <key>=<value>, e.g. `oco config set OCO_OPENAI_API_KEY=<value>`. For more info see https://github.com/di-sukharev/opencommit'
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const spin = spinner();
|
const spin = spinner();
|
||||||
|
|||||||
Reference in New Issue
Block a user