🐛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:
committed by
GitHub
parent
673eee209d
commit
e19305dee2
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user