new(all): Azure OpenAI added as new LLM provider.
This commit is contained in:
parent
47120be1ce
commit
665b4b28e8
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue