new(all): Azure OpenAI added as new LLM provider.

This commit is contained in:
Rodrigo Rodriguez 2024-05-25 10:25:20 -03:00
parent 47120be1ce
commit 665b4b28e8

View file

@ -748,7 +748,11 @@ ENDPOINT_UPDATE=true
// If still not found, get from boot bot params.
const minBoot = GBServer.globals.minBoot as any;
if (!value && instance.botId != minBoot.instance.botId) {
if (
minBoot.instance &&
!value && instance.botId != minBoot.instance.botId) {
instance = minBoot.instance;
if(instance.params){
@ -769,7 +773,7 @@ ENDPOINT_UPDATE=true
if (value === undefined) {
value = null;
}
if (value && typeof defaultValue === 'boolean') {
return new Boolean(value ? value.toString().toLowerCase() === 'true' : defaultValue).valueOf();
}