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:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Alpaca",
|
"name": "Alpaca",
|
||||||
"system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.",
|
"system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"system_sequence": "",
|
"system_sequence": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"input_sequence": "### Instruction:",
|
"input_sequence": "### Instruction:",
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "Koala",
|
"name": "Koala",
|
||||||
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.",
|
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"system_sequence": "BEGINNING OF CONVERSATION:",
|
"system_sequence": "BEGINNING OF CONVERSATION:",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"input_sequence": "USER: ",
|
"input_sequence": "USER: ",
|
||||||
"output_sequence": "GPT: ",
|
"output_sequence": "GPT: ",
|
||||||
"wrap": true
|
"wrap": false
|
||||||
}
|
}
|
9
public/instruct/Vicuna 1.0.json
Normal file
9
public/instruct/Vicuna 1.0.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "Vicuna 1.0",
|
||||||
|
"system_prompt": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
|
"system_sequence": "",
|
||||||
|
"stop_sequence": "",
|
||||||
|
"input_sequence": "### Human:",
|
||||||
|
"output_sequence": "### Assistant:",
|
||||||
|
"wrap": true
|
||||||
|
}
|
9
public/instruct/Vicuna 1.1.json
Normal file
9
public/instruct/Vicuna 1.1.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "Vicuna 1.1",
|
||||||
|
"system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
|
"system_sequence": "BEGINNING OF CONVERSATION:",
|
||||||
|
"stop_sequence": "",
|
||||||
|
"input_sequence": "USER: ",
|
||||||
|
"output_sequence": "ASSISTANT: ",
|
||||||
|
"wrap": true
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "WizardLM",
|
"name": "WizardLM",
|
||||||
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.",
|
"system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
|
||||||
"system_sequence": "",
|
"system_sequence": "",
|
||||||
"stop_sequence": "",
|
"stop_sequence": "",
|
||||||
"input_sequence": "### Instruction:",
|
"input_sequence": "### Instruction:",
|
||||||
|
@@ -295,7 +295,7 @@ const system_messages = {
|
|||||||
is_user: false,
|
is_user: false,
|
||||||
is_name: true,
|
is_name: true,
|
||||||
mes: [
|
mes: [
|
||||||
'<h2>Welcome to <span id="version_display_welcome">Welcome to </span>!</h2>',
|
'<h2>Welcome to <span id="version_display_welcome">SillyTavern</span>!</h2>',
|
||||||
'<div id="version_display_welcome"></div>',
|
'<div id="version_display_welcome"></div>',
|
||||||
'<h3>Want to Update to the latest version?</h3>',
|
'<h3>Want to Update to the latest version?</h3>',
|
||||||
"Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder",
|
"Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder",
|
||||||
|
@@ -95,8 +95,9 @@ async function activateExtensions() {
|
|||||||
for (let entry of extensions) {
|
for (let entry of extensions) {
|
||||||
const name = entry[0];
|
const name = entry[0];
|
||||||
const manifest = entry[1];
|
const manifest = entry[1];
|
||||||
|
const elementExists = document.getElementById(name) !== null;
|
||||||
|
|
||||||
if (activeExtensions.has(name)) {
|
if (elementExists || activeExtensions.has(name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2813,7 +2813,7 @@ function migrateSecrets() {
|
|||||||
if (typeof hordeKey === 'string') {
|
if (typeof hordeKey === 'string') {
|
||||||
console.log('Migrating Horde key...');
|
console.log('Migrating Horde key...');
|
||||||
writeSecret(SECRET_KEYS.HORDE, hordeKey);
|
writeSecret(SECRET_KEYS.HORDE, hordeKey);
|
||||||
delete settings.hordeKey;
|
delete settings.horde_settings.api_key;
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2885,6 +2885,7 @@ app.post('/generate_horde', jsonParser, async (request, response) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(args.data);
|
||||||
try {
|
try {
|
||||||
const data = await postAsync(url, args);
|
const data = await postAsync(url, args);
|
||||||
return response.send(data);
|
return response.send(data);
|
||||||
|
Reference in New Issue
Block a user