new(all): Azure OpenAI added as new LLM provider.
This commit is contained in:
parent
b3e5a265cf
commit
14ff832c58
4 changed files with 5 additions and 5 deletions
|
@ -288,7 +288,7 @@ export class AdminDialog extends IGBDialog {
|
|||
|
||||
const packages = [];
|
||||
let skipError = false;
|
||||
if (filename === null || filename === '') {
|
||||
if (!filename || filename === '') {
|
||||
await min.conversationalService.sendText(min, step, `Starting publishing for ${botId} packages...`);
|
||||
packages.push(`${botId}.gbot`);
|
||||
packages.push(`${botId}.gbtheme`);
|
||||
|
|
|
@ -868,7 +868,7 @@ export class GBConversationalService {
|
|||
}
|
||||
|
||||
public async routeNLP(step: GBDialogStep, min: GBMinInstance, text: string) {
|
||||
if (min.instance.nlpAppId === null || min.instance.nlpAppId === undefined) {
|
||||
if (!min.instance.nlpAppId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1013,7 +1013,7 @@ export class GBConversationalService {
|
|||
const key = min.core.getParam<string>(min.instance, 'translatorKey', null);
|
||||
|
||||
if (
|
||||
(endPoint === null && !min.instance.googleProjectId) ||
|
||||
(!endPoint && !min.instance.googleProjectId) ||
|
||||
!translatorEnabled() ||
|
||||
process.env.TRANSLATOR_DISABLED === 'true'
|
||||
) {
|
||||
|
|
|
@ -737,7 +737,7 @@ ENDPOINT_UPDATE=true
|
|||
if (params && !value) {
|
||||
value = instance['dataValues'][name];
|
||||
const minBoot = GBServer.globals.minBoot as any;
|
||||
if (value === null && instance != minBoot.instance) {
|
||||
if (!value && instance != minBoot.instance) {
|
||||
params = GBUtil.caseInsensitive(minBoot.instance.dataValues);
|
||||
value = params[name];
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ export class GBImporter {
|
|||
instance = await this.core.loadInstanceByBotId(botId);
|
||||
}
|
||||
|
||||
if (instance != undefined && instance.botId === null) {
|
||||
if (instance != undefined && !instance.botId) {
|
||||
console.log(`Null BotId after load instance with botId: ${botId}.`);
|
||||
} else {
|
||||
instance = additionalInstance;
|
||||
|
|
Loading…
Add table
Reference in a new issue