mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev
This commit is contained in:
@@ -371,9 +371,9 @@ async function saveWorldInfo(immediately) {
|
|||||||
|
|
||||||
async function renameWorldInfo() {
|
async function renameWorldInfo() {
|
||||||
const oldName = world_info;
|
const oldName = world_info;
|
||||||
const newName = $("#world_popup_name").val();
|
const newName = $("#world_popup_name").val().trim();
|
||||||
|
|
||||||
if (oldName === newName) {
|
if (oldName === newName || !newName) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2294,6 +2294,7 @@ app.post("/generate_openai", jsonParser, function (request, response_generate_op
|
|||||||
response_generate_openai.send({ error: true, quota_error });
|
response_generate_openai.send({ error: true, quota_error });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
return response_generate_openai.send({ error: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user