mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@1.2.7
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:
13
server.js
13
server.js
@@ -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);
|
||||
|
Reference in New Issue
Block a user