Skip to content

Commit

Permalink
fix(cli): --api-key not work
Browse files Browse the repository at this point in the history
link #141
  • Loading branch information
Zhengqbbb committed Aug 8, 2023
1 parent affb328 commit 0a65673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0a65673

Please # to comment.