Skip to content

Commit

Permalink
new(core.gbapp): LLM alerts for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 15, 2024
1 parent 0832f9d commit 52f4160
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/KeywordsExpressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}})`;
}
Expand Down
7 changes: 3 additions & 4 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ REFRESH "llm"

list = REWRITE "A list of latest 10 orders made."

TALK TO admin
TALK TO admin

0 comments on commit 52f4160

Please sign in to comment.