The bug with multigen 100+ token has been fixed.
The replacement of <USER>, {{user}}, <BOT>, {{char}} in Description, First message, Personality Summary and Scenario has been added.
Added full Markdown support.
The behavior of scrolling the chat to the cursor when editing a message has been fixed.
The offline functionality of TavernAI has been fixed.
This commit is contained in:
Ash
2023-02-05 18:12:18 +04:00
parent 28b2615c7a
commit e451bdf4d0
7 changed files with 67 additions and 13 deletions

View File

@@ -52,7 +52,7 @@ app.post("/getlastversion", jsonParser, function(request, response_getlastversio
const repo = 'TavernAI/TavernAI';
https.request({
const req = https.request({
hostname: 'github.com',
path: `/${repo}/releases/latest`,
method: 'HEAD'
@@ -66,10 +66,17 @@ app.post("/getlastversion", jsonParser, function(request, response_getlastversio
}else{
response_getlastversion.send({version: 'error'});
}
}).end();
});
req.on('error', (error) => {
console.error(error);
response_getlastversion.send({version: 'error'});
});
req.end();
});
app.use(express.static(__dirname + "/public", { refresh: true }));
app.use('/backgrounds', (req, res) => {
const filePath = path.join(process.cwd(), 'public/backgrounds', req.url);