🐛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
-5
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;
},