🐛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
This commit is contained in:
Takanori Matsumoto
2024-05-02 18:07:21 +09:00
committed by GitHub
parent 673eee209d
commit e19305dee2
4 changed files with 2 additions and 17 deletions

View File

@@ -26936,7 +26936,7 @@ function G3(t2, e3) {
// package.json
var package_default = {
name: "opencommit",
version: "3.0.13",
version: "3.0.14",
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
keywords: [
"git",
@@ -29496,11 +29496,6 @@ var configValidators = {
value.startsWith("sk-"),
'Must start with "sk-"'
);
validateConfig(
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
config9["OCO_OPENAI_BASE_PATH" /* OCO_OPENAI_BASE_PATH */] || value.length === 51,
"Must be 51 characters long"
);
return value;
},
["OCO_ANTHROPIC_API_KEY" /* OCO_ANTHROPIC_API_KEY */](value, config9 = {}) {

View File

@@ -48316,11 +48316,6 @@ var configValidators = {
value.startsWith("sk-"),
'Must start with "sk-"'
);
validateConfig(
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
config8["OCO_OPENAI_BASE_PATH" /* OCO_OPENAI_BASE_PATH */] || value.length === 51,
"Must be 51 characters long"
);
return value;
},
["OCO_ANTHROPIC_API_KEY" /* OCO_ANTHROPIC_API_KEY */](value, config8 = {}) {

View File

@@ -1,6 +1,6 @@
{
"name": "opencommit",
"version": "3.0.13",
"version": "3.0.14",
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
"keywords": [
"git",

View File

@@ -92,11 +92,6 @@ export const configValidators = {
value.startsWith('sk-'),
'Must start with "sk-"'
);
validateConfig(
CONFIG_KEYS.OCO_OPENAI_API_KEY,
config[CONFIG_KEYS.OCO_OPENAI_BASE_PATH] || value.length === 51,
'Must be 51 characters long'
);
return value;
},