Skip to content

Commit

Permalink
new(all): Azure OpenAI added as new LLM provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Rodriguez committed May 25, 2024
1 parent 47120be commit 665b4b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core.gbapp/services/GBCoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand All @@ -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();
}
Expand Down

0 comments on commit 665b4b2

Please sign in to comment.