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 = [];
|
const packages = [];
|
||||||
let skipError = false;
|
let skipError = false;
|
||||||
if (filename === null || filename === '') {
|
if (!filename || filename === '') {
|
||||||
await min.conversationalService.sendText(min, step, `Starting publishing for ${botId} packages...`);
|
await min.conversationalService.sendText(min, step, `Starting publishing for ${botId} packages...`);
|
||||||
packages.push(`${botId}.gbot`);
|
packages.push(`${botId}.gbot`);
|
||||||
packages.push(`${botId}.gbtheme`);
|
packages.push(`${botId}.gbtheme`);
|
||||||
|
|
|
@ -868,7 +868,7 @@ export class GBConversationalService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async routeNLP(step: GBDialogStep, min: GBMinInstance, text: string) {
|
public async routeNLP(step: GBDialogStep, min: GBMinInstance, text: string) {
|
||||||
if (min.instance.nlpAppId === null || min.instance.nlpAppId === undefined) {
|
if (!min.instance.nlpAppId) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1013,7 +1013,7 @@ export class GBConversationalService {
|
||||||
const key = min.core.getParam<string>(min.instance, 'translatorKey', null);
|
const key = min.core.getParam<string>(min.instance, 'translatorKey', null);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(endPoint === null && !min.instance.googleProjectId) ||
|
(!endPoint && !min.instance.googleProjectId) ||
|
||||||
!translatorEnabled() ||
|
!translatorEnabled() ||
|
||||||
process.env.TRANSLATOR_DISABLED === 'true'
|
process.env.TRANSLATOR_DISABLED === 'true'
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -737,7 +737,7 @@ ENDPOINT_UPDATE=true
|
||||||
if (params && !value) {
|
if (params && !value) {
|
||||||
value = instance['dataValues'][name];
|
value = instance['dataValues'][name];
|
||||||
const minBoot = GBServer.globals.minBoot as any;
|
const minBoot = GBServer.globals.minBoot as any;
|
||||||
if (value === null && instance != minBoot.instance) {
|
if (!value && instance != minBoot.instance) {
|
||||||
params = GBUtil.caseInsensitive(minBoot.instance.dataValues);
|
params = GBUtil.caseInsensitive(minBoot.instance.dataValues);
|
||||||
value = params[name];
|
value = params[name];
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ export class GBImporter {
|
||||||
instance = await this.core.loadInstanceByBotId(botId);
|
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}.`);
|
console.log(`Null BotId after load instance with botId: ${botId}.`);
|
||||||
} else {
|
} else {
|
||||||
instance = additionalInstance;
|
instance = additionalInstance;
|
||||||
|
|
Loading…
Add table
Reference in a new issue