From 0a65673b2b501d2c5bc8562652a75098a29f4ae9 Mon Sep 17 00:00:00 2001 From: Zhengqbbb <1074059947@qq.com> Date: Tue, 8 Aug 2023 15:02:24 +0800 Subject: [PATCH] fix(cli): `--api-key` not work link #141 --- packages/cli/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 0367033a0..89122b68e 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -47,7 +47,7 @@ export function bootsrap(environment: any = {}, argv = process.argv) { console.log(czgitVersion) process.exit(0) } - else if (openAIToken || apiProxy || unsetProxy || apiEndpoint) { + else if (openAIAPIKey || openAIToken || apiProxy || unsetProxy || apiEndpoint) { setupAIConfig(openAIAPIKey || openAIToken, apiProxy, unsetProxy, apiEndpoint) process.exit(0) }