new(all): WebDav support for all bots.
This commit is contained in:
parent
2ae256d036
commit
222a4f3201
9 changed files with 35666 additions and 13 deletions
|
@ -90,18 +90,24 @@ export class GBConfigService {
|
|||
case 'STORAGE_NAME':
|
||||
value = null;
|
||||
break;
|
||||
case 'WEBDAV_USERNAME':
|
||||
value = null;
|
||||
break;
|
||||
case 'WEBDAV_PASSWORD':
|
||||
value = null;
|
||||
break;
|
||||
case 'CLOUD_USERNAME':
|
||||
value = undefined;
|
||||
break;
|
||||
case 'CLOUD_PASSWORD':
|
||||
value = undefined;
|
||||
break;
|
||||
case 'STORAGE_LIBRARY':
|
||||
value = `${process.env.HOME}/gbpackages`;
|
||||
break;
|
||||
case 'BOT_ID':
|
||||
value = 'default';
|
||||
break;
|
||||
case 'CLOUD_PASSWORD':
|
||||
value = undefined;
|
||||
break;
|
||||
case 'CLOUD_SUBSCRIPTIONID':
|
||||
value = undefined;
|
||||
break;
|
||||
|
|
|
@ -1648,7 +1648,6 @@ export class GBMinService {
|
|||
if (GBServer.globals.server.apiServer) {
|
||||
GBServer.globals.server.apiServer.close(cb => {
|
||||
resolve(true);
|
||||
GBLogEx.info(0, 'Reloading General Bots API...');
|
||||
});
|
||||
} else {
|
||||
resolve(true);
|
||||
|
|
|
@ -57,6 +57,17 @@
|
|||
/* filter: opacity(0); Problem in recent Chrome 68+ */
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// Focus the input field after rendering
|
||||
setTimeout(() => {
|
||||
const input = document.querySelector('.webchat-input');
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
}, 3000); // Adjust timing as needed
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body style="background-color: lightgrey;">
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
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. "
|
BIN
templates/ai-search.gbai/ai-search.gbkb/docs/BH7_UkEngSoft_A.pdf
Normal file
BIN
templates/ai-search.gbai/ai-search.gbkb/docs/BH7_UkEngSoft_A.pdf
Normal file
Binary file not shown.
35641
templates/ai-search.gbai/ai-search.gbkb/docs/BHL7SFD_UsaEngUsr_A.pdf
Normal file
35641
templates/ai-search.gbai/ai-search.gbkb/docs/BHL7SFD_UsaEngUsr_A.pdf
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
2
templates/ai-search.gbai/ai-search.gbot/config.csv
Normal file
2
templates/ai-search.gbai/ai-search.gbot/config.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
name,value
|
||||
Answer Mode,document
|
|
|
@ -47,10 +47,10 @@ Twitter Access Token,
|
|||
Twitter Access Token Secret,
|
||||
Twitter Consumer Key,
|
||||
Twitter Consumer Key Secret,
|
||||
Website, https:/github.com/GeneralBots
|
||||
Website,
|
||||
Welcome Article,
|
||||
WhatsApp Admins,
|
||||
WhatsApp Group ID,
|
||||
WhatsApp Group Shortcuts,
|
||||
WebDav Username,admin
|
||||
WebDav Password,&y5F9$B.1*Q6
|
||||
WebDav Username,
|
||||
WebDav Password,
|
|
Loading…
Add table
Reference in a new issue