From e19305dee280dc7598d196653f04b6128662666f Mon Sep 17 00:00:00 2001 From: Takanori Matsumoto Date: Thu, 2 May 2024 18:07:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bbug=20fix:=20enable=20to=20use=20th?= =?UTF-8?q?e=20new=20format=20of=20OpenAI's=20project=20API=20Key=20(#328)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(config.ts): remove validation for OCO_OPENAI_API_KEY length to accommodate variable key lengths * build --- out/cli.cjs | 7 +------ out/github-action.cjs | 5 ----- package.json | 2 +- src/commands/config.ts | 5 ----- 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/out/cli.cjs b/out/cli.cjs index 523e6da..bc41113 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -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 = {}) { diff --git a/out/github-action.cjs b/out/github-action.cjs index 8cf0a28..f86b730 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -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 = {}) { diff --git a/package.json b/package.json index 2ea70a8..56e6a65 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/commands/config.ts b/src/commands/config.ts index 79cdb6f..e038312 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -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; },