Skip to content

Commit e19305d

Browse files
authored
🐛bug fix: enable to use the new format of OpenAI's project API Key (#328)
* fix(config.ts): remove validation for OCO_OPENAI_API_KEY length to accommodate variable key lengths * build
1 parent 673eee2 commit e19305d

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

out/cli.cjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26936,7 +26936,7 @@ function G3(t2, e3) {
2693626936
// package.json
2693726937
var package_default = {
2693826938
name: "opencommit",
26939-
version: "3.0.13",
26939+
version: "3.0.14",
2694026940
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
2694126941
keywords: [
2694226942
"git",
@@ -29496,11 +29496,6 @@ var configValidators = {
2949629496
value.startsWith("sk-"),
2949729497
'Must start with "sk-"'
2949829498
);
29499-
validateConfig(
29500-
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
29501-
config9["OCO_OPENAI_BASE_PATH" /* OCO_OPENAI_BASE_PATH */] || value.length === 51,
29502-
"Must be 51 characters long"
29503-
);
2950429499
return value;
2950529500
},
2950629501
["OCO_ANTHROPIC_API_KEY" /* OCO_ANTHROPIC_API_KEY */](value, config9 = {}) {

out/github-action.cjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48316,11 +48316,6 @@ var configValidators = {
4831648316
value.startsWith("sk-"),
4831748317
'Must start with "sk-"'
4831848318
);
48319-
validateConfig(
48320-
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
48321-
config8["OCO_OPENAI_BASE_PATH" /* OCO_OPENAI_BASE_PATH */] || value.length === 51,
48322-
"Must be 51 characters long"
48323-
);
4832448319
return value;
4832548320
},
4832648321
["OCO_ANTHROPIC_API_KEY" /* OCO_ANTHROPIC_API_KEY */](value, config8 = {}) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencommit",
3-
"version": "3.0.13",
3+
"version": "3.0.14",
44
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
55
"keywords": [
66
"git",

src/commands/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ export const configValidators = {
9292
value.startsWith('sk-'),
9393
'Must start with "sk-"'
9494
);
95-
validateConfig(
96-
CONFIG_KEYS.OCO_OPENAI_API_KEY,
97-
config[CONFIG_KEYS.OCO_OPENAI_BASE_PATH] || value.length === 51,
98-
'Must be 51 characters long'
99-
);
10095

10196
return value;
10297
},

0 commit comments

Comments
 (0)