new(basic.gblib): GPT replacing ALLEN NLP Reading Comp.
This commit is contained in:
parent
7ac1cb4ab7
commit
2e13ea0f6d
1 changed files with 7 additions and 5 deletions
|
@ -543,7 +543,7 @@ export class GBMinService {
|
||||||
await this.adminService.setValue(instance.instanceId,
|
await this.adminService.setValue(instance.instanceId,
|
||||||
`${tokenName}expiresOn`, token['expiresOn'] ?
|
`${tokenName}expiresOn`, token['expiresOn'] ?
|
||||||
token['expiresOn'].toString() :
|
token['expiresOn'].toString() :
|
||||||
new Date(Date.now() + (token['expires_in']*1000)).toString());
|
new Date(Date.now() + (token['expires_in'] * 1000)).toString());
|
||||||
await this.adminService.setValue(instance.instanceId, `${tokenName}AntiCSRFAttackState`, null);
|
await this.adminService.setValue(instance.instanceId, `${tokenName}AntiCSRFAttackState`, null);
|
||||||
|
|
||||||
|
|
||||||
|
@ -750,9 +750,11 @@ export class GBMinService {
|
||||||
min.sandBoxMap = {};
|
min.sandBoxMap = {};
|
||||||
min['scheduleMap'] = {};
|
min['scheduleMap'] = {};
|
||||||
min['conversationWelcomed'] = {};
|
min['conversationWelcomed'] = {};
|
||||||
min['vectorStore']= await this.deployer.loadOrCreateEmptyVectorStore(min);
|
if (process.env.OPENAI_API_KEY) {
|
||||||
const gbkbPath = DialogKeywords.getGBAIPath(min.botId, 'gbkb');
|
min['vectorStore'] = await this.deployer.loadOrCreateEmptyVectorStore(min);
|
||||||
min['vectorStorePath']= Path.join('work', gbkbPath, 'docs-vectorized');
|
const gbkbPath = DialogKeywords.getGBAIPath(min.botId, 'gbkb');
|
||||||
|
min['vectorStorePath'] = Path.join('work', gbkbPath, 'docs-vectorized');
|
||||||
|
}
|
||||||
min.packages = sysPackages;
|
min.packages = sysPackages;
|
||||||
|
|
||||||
// NLP Manager.
|
// NLP Manager.
|
||||||
|
@ -1237,7 +1239,7 @@ export class GBMinService {
|
||||||
|
|
||||||
const t = new SystemKeywords();
|
const t = new SystemKeywords();
|
||||||
GBLog.info(`BASIC (${min.botId}): Upload done for ${attachmentData.fileName}.`);
|
GBLog.info(`BASIC (${min.botId}): Upload done for ${attachmentData.fileName}.`);
|
||||||
const handle = WebAutomationServices.cyrb53({pid:0, str:min.botId + attachmentData.fileName});
|
const handle = WebAutomationServices.cyrb53({ pid: 0, str: min.botId + attachmentData.fileName });
|
||||||
let data = Fs.readFileSync(attachmentData.localPath);
|
let data = Fs.readFileSync(attachmentData.localPath);
|
||||||
|
|
||||||
const gbfile = {
|
const gbfile = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue