mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
test fixed.. hopefully
This commit is contained in:
parent
f6c9d81049
commit
4eef4b142d
@ -169,5 +169,4 @@ export const CONFIG = {
|
|||||||
...humhub,
|
...humhub,
|
||||||
...openai,
|
...openai,
|
||||||
}
|
}
|
||||||
|
|
||||||
validate(schema, CONFIG)
|
validate(schema, CONFIG)
|
||||||
|
|||||||
@ -328,14 +328,14 @@ export const schema = Joi.object({
|
|||||||
|
|
||||||
OPENAI_API_KEY: Joi.string()
|
OPENAI_API_KEY: Joi.string()
|
||||||
.pattern(/^sk-[A-Za-z0-9-_]{20,}$/)
|
.pattern(/^sk-[A-Za-z0-9-_]{20,}$/)
|
||||||
.when('OPENAI_ACTIVE', { is: true, then: Joi.required(), otherwise: Joi.optional() })
|
.when('OPENAI_ACTIVE', { is: true, then: Joi.required(), otherwise: Joi.optional().allow('') })
|
||||||
.description(
|
.description(
|
||||||
'API key for OpenAI, must be at least 20 characters long and contain only alphanumeric characters, dashes, or underscores',
|
'API key for OpenAI, must be at least 20 characters long and contain only alphanumeric characters, dashes, or underscores',
|
||||||
),
|
),
|
||||||
|
|
||||||
OPENAI_ASSISTANT_ID: Joi.string()
|
OPENAI_ASSISTANT_ID: Joi.string()
|
||||||
.pattern(/^asst_[A-Za-z0-9-]{20,}$/)
|
.pattern(/^asst_[A-Za-z0-9-]{20,}$/)
|
||||||
.when('OPENAI_ACTIVE', { is: true, then: Joi.required(), otherwise: Joi.optional() })
|
.when('OPENAI_ACTIVE', { is: true, then: Joi.required(), otherwise: Joi.optional().allow('') })
|
||||||
.description('Assistant ID for OpenAI'),
|
.description('Assistant ID for OpenAI'),
|
||||||
|
|
||||||
USE_CRYPTO_WORKER: Joi.boolean()
|
USE_CRYPTO_WORKER: Joi.boolean()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user