new(all): WebDav support for all bots.

This commit is contained in:
Rodrigo Rodriguez 2024-08-30 19:22:56 -03:00
parent 053ff4c8f6
commit 7e1fda84bb
6 changed files with 18 additions and 5 deletions

View file

@ -1,3 +1,4 @@
{
"git.ignoreLimitWarning": true
"git.ignoreLimitWarning": true,
"cmake.ignoreCMakeListsMissing": true
}

View file

@ -145,7 +145,6 @@
"instagram-private-api": "1.46.1",
"iso-639-1": "3.1.2",
"isomorphic-fetch": "3.0.0",
"join-images-updated": "1.1.11",
"js-md5": "0.8.3",
"json-schema-to-zod": "2.1.0",
"just-indent": "0.0.1",

View file

@ -33,7 +33,6 @@
import Path from 'path';
import { GBLog, GBMinInstance } from 'botlib';
import { DialogKeywords } from './DialogKeywords.js';
import joinImages from 'join-images-updated';
import { CollectionUtil } from 'pragmatismo-io-framework';
import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js';
import urlJoin from 'url-join';
@ -76,7 +75,7 @@ export class ImageProcessingServices {
const botId = min.instance.botId;
const path = DialogKeywords.getGBAIPath(min.botId);
const img = await joinImages(paths);
// TODO: const img = await joinImages(paths);
const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`);
const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName));
img.toFile(localName);

View file

@ -0,0 +1,6 @@
TALK "Qual o número do processo? "
HEAR processo
text = GET "processo.pdf"
text = "Com base neste documento, responda as dúvidas da pessoa: \n\n" + text
SET CONTEXT text
TALK "Processo ${processo} carregado. Pode me perguntar qualquer coisa do processo ou me peça um resumo da forma que você precisar. "

View file

@ -0,0 +1,8 @@
TALK Olá! + username + ! Bem vinda(o)!
BEGIN SYSTEM PROMPT
If someone asks about my technology, I'm an AI virtual assistant powered by the General Bots LLM.
Always answer at the end, saying that your are available, say it each time differently with each response.
END SYSTEM PROMPT

View file

@ -1,3 +1,3 @@
name,value
Website,https://pragmatismo.cloud
Answer Mode,direct
Answer Mode,document
1 name value
2 Website https://pragmatismo.cloud
3 Answer Mode direct document