new(core.gbapp): LLM alerts for data.
This commit is contained in:
parent
0832f9d769
commit
52f416076e
3 changed files with 5 additions and 6 deletions
|
@ -1309,7 +1309,7 @@ export class KeywordsExpressions {
|
|||
];
|
||||
|
||||
keywords[i++] = [
|
||||
/^\s*refresh\s*(.*)/gim,
|
||||
/^\s*(refresh)\s*(.*)/gim,
|
||||
($0, $1, $2, $3) => {
|
||||
return `await sys.refreshDataSourceCache({pid: pid, connectionName: ${$2}})`;
|
||||
}
|
||||
|
|
|
@ -1044,10 +1044,9 @@ export class GBMinService {
|
|||
|
||||
const sec = new SecService();
|
||||
let member = context.activity.recipient;
|
||||
|
||||
|
||||
if (process.env.STORAGE_NAME){
|
||||
member = context.activity.from;
|
||||
|
||||
if (process.env.STORAGE_NAME || !member) {
|
||||
member = context.activity.from;
|
||||
}
|
||||
let user = await sec.ensureUser(min, member.id, member.name, '', 'web', member.name, null);
|
||||
const userId = user.userId;
|
||||
|
|
|
@ -4,4 +4,4 @@ REFRESH "llm"
|
|||
|
||||
list = REWRITE "A list of latest 10 orders made."
|
||||
|
||||
TALK TO admin
|
||||
TALK TO admin
|
Loading…
Add table
Reference in a new issue