This commit is contained in:
RossAscends
2023-07-04 23:00:13 +09:00
43 changed files with 358 additions and 555 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "sillytavern", "name": "sillytavern",
"version": "1.8.0", "version": "1.8.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sillytavern", "name": "sillytavern",
"version": "1.8.0", "version": "1.8.1",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",

View File

@@ -49,7 +49,7 @@
"type": "git", "type": "git",
"url": "https://github.com/SillyTavern/SillyTavern.git" "url": "https://github.com/SillyTavern/SillyTavern.git"
}, },
"version": "1.8.0", "version": "1.8.1",
"scripts": { "scripts": {
"start": "node server.js", "start": "node server.js",
"pkg": "pkg --compress Gzip --no-bytecode --public ." "pkg": "pkg --compress Gzip --no-bytecode --public ."

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 1.15,
"genamt": 100, "genamt": 100,
"temp": 1.15,
"top_k": 0, "top_k": 0,
"top_p": 0.95, "top_p": 0.95,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 7, "rep_pen_slope": 7,
"sampler_order": [ "sampler_order": [
6,
3, 3,
2, 2,
0, 0,
5, 5,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,6 +1,16 @@
{ {
"apikey": "", "max_length": 2048,
"andepth": 1, "genamt": 90,
"temp": 0.8,
"top_k": 28,
"top_p": 0.94,
"top_a": 0.00,
"tfs": 0.96,
"typical": 0.98,
"rep_pen": 1.03,
"rep_pen_slope": 0.8,
"rep_pen_range": 120.0,
"ikgen": 200,
"sampler_order": [ "sampler_order": [
6, 6,
4, 4,
@@ -9,46 +19,5 @@
0, 0,
1, 1,
5 5
], ]
"temp": 0.8,
"top_p": 0.94,
"top_k": 28,
"tfs": 0.96,
"typical": 0.98,
"top_a": 0.00,
"rep_pen": 1.03,
"rep_pen_slope": 0.8,
"rep_pen_range": 120.0,
"genamt": 90,
"max_length": 2048,
"ikgen": 200,
"formatoptns": {
"frmttriminc": true,
"frmtrmblln": false,
"frmtrmspch": false,
"frmtadsnsp": true,
"singleline": false
},
"numseqs": 1,
"widepth": 3,
"useprompt": false,
"adventure": false,
"chatmode": false,
"chatname": "You",
"dynamicscan": false,
"nopromptgen": false,
"rngpersist": false,
"nogenmod": false,
"fulldeterminism": false,
"autosave": false,
"welcome": "## Warning: This model has a very heavy NSFW bias and is not suitable for use by minors!\n\nYou are currently running story-writing model `Erebus, version 1 (20B).`\n\n This model is made by [Mr. Seeker](https://www.patreon.com/mrseeker) with help of ProudNoob and the KoboldAI team.\n\n### How to use this model\n\nErebus is designed to generate short stories and novels. Use the author's note to give it a certain genre to follow, use memory to give an overview of the story and use World Information to give specific details about the characters. To start off, give the AI an idea of what you are writing about by setting the scene. Give the AI around 10 sentences that make your story interesting to read. Introduce your character, describe the world, blow something up, or let the AI use its creative mind.",
"output_streaming": true,
"show_probs": false,
"show_budget": false,
"seed": null,
"newlinemode": "n",
"antemplate": "",
"userscripts": [],
"corescript": "default.lua",
"softprompt": ""
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.59,
"genamt": 100, "genamt": 100,
"temp": 0.59,
"top_k": 0, "top_k": 0,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0.3, "rep_pen_slope": 0.3,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.8,
"genamt": 100, "genamt": 100,
"temp": 0.8,
"top_k": 100, "top_k": 100,
"top_p": 0.9, "top_p": 0.9,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 3.4, "rep_pen_slope": 3.4,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 2048, "max_length": 2048,
"ikmax": 3000,
"genamt": 180, "genamt": 180,
"ikgen": 200,
"rep_pen": 1.01,
"rep_pen_slope": 0.9,
"rep_pen_range": 1024,
"temp": 1.0, "temp": 1.0,
"top_p": 0.9, "top_p": 0.9,
"top_k": 40, "top_k": 40,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.9, "tfs": 0.9,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.01,
"fp32_model": false, "rep_pen_slope": 0.9,
"modeldim": 4096, "rep_pen_range": 1024,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -24,24 +18,5 @@
3, 3,
4, 4,
5 5
]
],
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-6b",
"model_type": "gptj",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-6b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 2048, "max_length": 2048,
"ikmax": 3000,
"genamt": 180, "genamt": 180,
"ikgen": 200,
"rep_pen": 1.17,
"rep_pen_slope": 0.2,
"rep_pen_range": 1024,
"temp": 0.43, "temp": 0.43,
"top_p": 0.96, "top_p": 0.96,
"top_k": 0, "top_k": 0,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.68, "tfs": 0.68,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.17,
"fp32_model": false, "rep_pen_slope": 0.2,
"modeldim": 2560, "rep_pen_range": 1024,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -24,23 +18,5 @@
3, 3,
4, 4,
5 5
], ]
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-2.7b",
"model_type": "gpt_neo",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-2.7b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 2048, "max_length": 2048,
"ikmax": 3000,
"genamt": 180, "genamt": 180,
"ikgen": 200,
"rep_pen": 1.1,
"rep_pen_slope": 0.9,
"rep_pen_range": 1024,
"temp": 0.65, "temp": 0.65,
"top_p": 0.9, "top_p": 0.9,
"top_k": 0, "top_k": 0,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.9, "tfs": 0.9,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.1,
"fp32_model": false, "rep_pen_slope": 0.9,
"modeldim": 4096, "rep_pen_range": 1024,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -23,25 +17,6 @@
2, 2,
3, 3,
4, 4,
5 5
]
],
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-6b",
"model_type": "gptj",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-6b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,22 +1,22 @@
{ {
"max_length": 2048, "max_length": 2048,
"genamt": 100, "genamt": 100,
"temp": 0.51,
"top_p": 1,
"top_k": 0,
"tfs": 0.99,
"top_a": 0,
"typical": 1,
"rep_pen": 1.2, "rep_pen": 1.2,
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0, "rep_pen_slope": 0,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6 ]
],
"temp": 0.51,
"tfs": 0.99,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"typical": 1
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 1600, "max_length": 1600,
"temp": 0.79,
"genamt": 180, "genamt": 180,
"temp": 0.79,
"top_k": 0, "top_k": 0,
"top_p": 0.9, "top_p": 0.9,
"top_a": 0, "top_a": 0,

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 2048, "max_length": 2048,
"ikmax": 3000,
"genamt": 180, "genamt": 180,
"ikgen": 200,
"rep_pen": 1.19,
"rep_pen_slope": 0.9,
"rep_pen_range": 1024,
"temp": 0.79, "temp": 0.79,
"top_p": 0.9, "top_p": 0.9,
"top_k": 0, "top_k": 0,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.95, "tfs": 0.95,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.19,
"fp32_model": false, "rep_pen_slope": 0.9,
"modeldim": 4096, "rep_pen_range": 1024,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -24,24 +18,5 @@
3, 3,
4, 4,
5 5
]
],
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-6b",
"model_type": "gptj",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-6b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 1400, "max_length": 1400,
"ikmax": 3000,
"genamt": 180, "genamt": 180,
"ikgen": 200,
"rep_pen": 1.08,
"rep_pen_slope": 0.9,
"rep_pen_range": 1024,
"temp": 0.65, "temp": 0.65,
"top_p": 0.9, "top_p": 0.9,
"top_k": 0, "top_k": 0,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.9, "tfs": 0.9,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.08,
"fp32_model": false, "rep_pen_slope": 0.9,
"modeldim": 4096, "rep_pen_range": 1024,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -24,24 +18,5 @@
3, 3,
4, 4,
5 5
]
],
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-6b",
"model_type": "gptj",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-6b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.63,
"genamt": 100, "genamt": 100,
"temp": 0.63,
"top_k": 0, "top_k": 0,
"top_p": 0.98, "top_p": 0.98,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0.1, "rep_pen_slope": 0.1,
"sampler_order": [ "sampler_order": [
6,
2, 2,
0, 0,
3, 3,
5, 5,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.7,
"genamt": 100, "genamt": 100,
"temp": 0.7,
"top_k": 0, "top_k": 0,
"top_p": 0.5, "top_p": 0.5,
"top_a": 0.75, "top_a": 0.75,
@@ -11,12 +11,12 @@
"rep_pen_range": 1024, "rep_pen_range": 1024,
"rep_pen_slope": 0.7, "rep_pen_slope": 0.7,
"sampler_order": [ "sampler_order": [
6,
5, 5,
4, 4,
3, 3,
2, 2,
1, 1,
0, 0
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.7,
"genamt": 100, "genamt": 100,
"temp": 0.7,
"top_k": 0, "top_k": 0,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 1024, "rep_pen_range": 1024,
"rep_pen_slope": 0.7, "rep_pen_slope": 0.7,
"sampler_order": [ "sampler_order": [
6,
0, 0,
1, 1,
2, 2,
3, 3,
4, 4,
5, 5
6
] ]
} }

View File

@@ -1,15 +1,6 @@
{ {
"apikey": "", "max_length": 2048,
"andepth": 1, "genamt": 90,
"sampler_order": [
6,
4,
3,
2,
0,
1,
5
],
"temp": 0.8, "temp": 0.8,
"top_p": 0.94, "top_p": 0.94,
"top_k": 15, "top_k": 15,
@@ -19,36 +10,13 @@
"rep_pen": 1.02, "rep_pen": 1.02,
"rep_pen_slope": 0.8, "rep_pen_slope": 0.8,
"rep_pen_range": 256.0, "rep_pen_range": 256.0,
"genamt": 90, "sampler_order": [
"max_length": 2048, 6,
"ikgen": 200, 4,
"formatoptns": { 3,
"frmttriminc": true, 2,
"frmtrmblln": false, 0,
"frmtrmspch": false, 1,
"frmtadsnsp": true, 5
"singleline": false ]
},
"numseqs": 1,
"widepth": 3,
"useprompt": false,
"adventure": false,
"chatmode": false,
"chatname": "You",
"dynamicscan": false,
"nopromptgen": false,
"rngpersist": false,
"nogenmod": false,
"fulldeterminism": false,
"autosave": false,
"welcome": "## Warning: This model has a very heavy NSFW bias and is not suitable for use by minors!\n\nYou are currently running story-writing model `Erebus, version 1 (20B).`\n\n This model is made by [Mr. Seeker](https://www.patreon.com/mrseeker) with help of ProudNoob and the KoboldAI team.\n\n### How to use this model\n\nErebus is designed to generate short stories and novels. Use the author's note to give it a certain genre to follow, use memory to give an overview of the story and use World Information to give specific details about the characters. To start off, give the AI an idea of what you are writing about by setting the scene. Give the AI around 10 sentences that make your story interesting to read. Introduce your character, describe the world, blow something up, or let the AI use its creative mind.",
"output_streaming": true,
"show_probs": false,
"show_budget": false,
"seed": null,
"newlinemode": "n",
"antemplate": "",
"userscripts": [],
"corescript": "default.lua",
"softprompt": ""
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.66,
"genamt": 100, "genamt": 100,
"temp": 0.66,
"top_k": 0, "top_k": 0,
"top_p": 1, "top_p": 1,
"top_a": 0.96, "top_a": 0.96,
@@ -11,12 +11,12 @@
"rep_pen_range": 1024, "rep_pen_range": 1024,
"rep_pen_slope": 0.7, "rep_pen_slope": 0.7,
"sampler_order": [ "sampler_order": [
6,
4, 4,
5, 5,
1, 1,
0, 0,
2, 2,
3, 3
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.94,
"genamt": 100, "genamt": 100,
"temp": 0.94,
"top_k": 12, "top_k": 12,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0.2, "rep_pen_slope": 0.2,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 1.5,
"genamt": 100, "genamt": 100,
"temp": 1.5,
"top_k": 85, "top_k": 85,
"top_p": 0.24, "top_p": 0.24,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0, "rep_pen_slope": 0,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 1.05,
"genamt": 100, "genamt": 100,
"temp": 1.05,
"top_k": 0, "top_k": 0,
"top_p": 0.95, "top_p": 0.95,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 1024, "rep_pen_range": 1024,
"rep_pen_slope": 0.7, "rep_pen_slope": 0.7,
"sampler_order": [ "sampler_order": [
6,
0, 0,
1, 1,
2, 2,
3, 3,
4, 4,
5, 5
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 1.07,
"genamt": 100, "genamt": 100,
"temp": 1.07,
"top_k": 100, "top_k": 100,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 404, "rep_pen_range": 404,
"rep_pen_slope": 0.8, "rep_pen_slope": 0.8,
"sampler_order": [ "sampler_order": [
6,
0, 0,
5, 5,
3, 3,
2, 2,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 0.44,
"genamt": 100, "genamt": 100,
"temp": 0.44,
"top_k": 0, "top_k": 0,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 6.8, "rep_pen_slope": 6.8,
"sampler_order": [ "sampler_order": [
6,
5, 5,
0, 0,
2, 2,
3, 3,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 2048, "max_length": 2048,
"temp": 1.35,
"genamt": 100, "genamt": 100,
"temp": 1.35,
"top_k": 0, "top_k": 0,
"top_p": 1, "top_p": 1,
"top_a": 0, "top_a": 0,
@@ -11,12 +11,12 @@
"rep_pen_range": 2048, "rep_pen_range": 2048,
"rep_pen_slope": 0.1, "rep_pen_slope": 0.1,
"sampler_order": [ "sampler_order": [
6,
3, 3,
2, 2,
5, 5,
0, 0,
1, 1,
4, 4
6
] ]
} }

View File

@@ -1,21 +1,15 @@
{ {
"file_version": 2,
"max_length": 1400, "max_length": 1400,
"ikmax": 3000,
"genamt": 80, "genamt": 80,
"ikgen": 200,
"rep_pen": 1.04,
"rep_pen_slope": 0.0,
"rep_pen_range": 1400,
"temp": 1, "temp": 1,
"top_p": 1, "top_p": 1,
"top_k": 0, "top_k": 0,
"top_a": 0.0, "top_a": 0.0,
"tfs": 0.97, "tfs": 0.97,
"typical": 1.0, "typical": 1.0,
"numseqs": 1, "rep_pen": 1.04,
"fp32_model": false, "rep_pen_slope": 0.0,
"modeldim": 2560, "rep_pen_range": 1400,
"sampler_order": [ "sampler_order": [
6, 6,
0, 0,
@@ -24,23 +18,5 @@
3, 3,
4, 4,
5 5
], ]
"newlinemode": "n",
"lazy_load": true,
"revision": null,
"selected_preset": "",
"horde_wait_time": 0,
"horde_queue_position": 0,
"horde_queue_size": 0,
"model": "pygmalion-1.3b",
"model_type": "gpt_neo",
"url": "https://api.inferkit.com/v1/models/standard/generate",
"oaiurl": "",
"oaiengines": "https://api.openai.com/v1/engines",
"colaburl": "/request",
"apikey": "",
"oaiapikey": "",
"configname": "pygmalion-1.3b",
"online_model": "",
"alt_multi_gen": false
} }

View File

@@ -1,7 +1,7 @@
{ {
"max_length": 100, "max_length": 100,
"temp": 1,
"genamt": 100, "genamt": 100,
"temp": 1,
"top_k": 0, "top_k": 0,
"top_p": 0.95, "top_p": 0.95,
"top_a": 0, "top_a": 0,

View File

@@ -1,22 +1,22 @@
{ {
"max_length": 2048, "max_length": 2048,
"genamt": 100, "genamt": 100,
"rep_pen": 1.1,
"rep_pen_range": 2048,
"rep_pen_slope": 0.2,
"sampler_order": [
5,
0,
2,
3,
1,
4,
6
],
"temp": 0.72, "temp": 0.72,
"tfs": 1, "tfs": 1,
"top_a": 0, "top_a": 0,
"top_k": 0, "top_k": 0,
"top_p": 0.73, "top_p": 0.73,
"typical": 1 "typical": 1,
"rep_pen": 1.1,
"rep_pen_range": 2048,
"rep_pen_slope": 0.2,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
]
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 1.68, "temp": 1.68,
"top_p": 0.17, "top_p": 0.17,
"top_k": 77, "top_k": 77,
"typical_p": 1, "typical_p": 1,
"top_a": 0.42, "top_a": 0.42,
"tfs": 0.97, "tfs": 0.97,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.02, "rep_pen": 1.02,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.87, "temp": 0.87,
"top_p": 0.99, "top_p": 0.99,
"top_k": 85, "top_k": 85,
"typical_p": 0.68, "typical_p": 0.68,
"top_a": 0, "top_a": 0,
"tfs": 0.68, "tfs": 0.68,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.01, "rep_pen": 1.01,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,20 +1,19 @@
{ {
"temp": 1.31,
"temp": 1.31, "top_p": 0.14,
"top_p": 0.14, "top_k": 49,
"top_k": 49, "typical_p": 1,
"typical_p": 1, "top_a": 0.52,
"top_a": 0.52, "tfs": 1,
"tfs": 1, "epsilon_cutoff": 1.49,
"epsilon_cutoff": 1.49, "eta_cutoff": 10.42,
"eta_cutoff": 10.42, "rep_pen": 1.17,
"rep_pen": 1.17, "no_repeat_ngram_size": 0,
"no_repeat_ngram_size": 0, "penalty_alpha": 0,
"penalty_alpha": 0, "num_beams": 1,
"num_beams": 1, "length_penalty": 1,
"length_penalty": 1, "min_length": 0,
"min_length": 0, "encoder_rep_pen": 1,
"encoder_rep_pen": 1, "do_sample": true,
"do_sample": true, "early_stopping": false
"early_stopping": false }
}

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.98, "temp": 0.98,
"top_p": 0.37, "top_p": 0.37,
"top_k": 100, "top_k": 100,
"typical_p": 1, "typical_p": 1,
"top_a": 0, "top_a": 0,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.18, "rep_pen": 1.18,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 1.53, "temp": 1.53,
"top_p": 0.64, "top_p": 0.64,
"top_k": 33, "top_k": 33,
"typical_p": 1, "typical_p": 1,
"top_a": 0.04, "top_a": 0.04,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.07, "rep_pen": 1.07,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.7, "temp": 0.7,
"top_p": 0.9, "top_p": 0.9,
"top_k": 20, "top_k": 20,
"typical_p": 1, "typical_p": 1,
"top_a": 0.75, "top_a": 0.75,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.15, "rep_pen": 1.15,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 1.31, "temp": 1.31,
"top_p": 0.29, "top_p": 0.29,
"top_k": 72, "top_k": 72,
"typical_p": 1, "typical_p": 1,
"top_a": 0, "top_a": 0,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.09, "rep_pen": 1.09,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.02, "temp": 0.02,
"top_p": 0.95, "top_p": 0.95,
"top_k": 50, "top_k": 50,
"typical_p": 1, "typical_p": 1,
"top_a": 0, "top_a": 0,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1, "rep_pen": 1,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.7, "temp": 0.7,
"top_p": 1, "top_p": 1,
"top_k": 0, "top_k": 0,
"typical_p": 1, "typical_p": 1,
"top_a": 0.2, "top_a": 0.2,
"tfs": 0.95, "tfs": 0.95,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.15, "rep_pen": 1.15,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 1.01, "temp": 1.01,
"top_p": 0.21, "top_p": 0.21,
"top_k": 91, "top_k": 91,
"typical_p": 1, "typical_p": 1,
"top_a": 0.75, "top_a": 0.75,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 10.78, "eta_cutoff": 10.78,
"rep_pen": 1.21, "rep_pen": 1.21,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1.07, "encoder_rep_pen": 1.07,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1,19 +1,19 @@
{ {
"temp": 0.82, "temp": 0.82,
"top_p": 0.21, "top_p": 0.21,
"top_k": 72, "top_k": 72,
"typical_p": 1, "typical_p": 1,
"top_a": 0, "top_a": 0,
"tfs": 1, "tfs": 1,
"epsilon_cutoff": 0, "epsilon_cutoff": 0,
"eta_cutoff": 0, "eta_cutoff": 0,
"rep_pen": 1.19, "rep_pen": 1.19,
"no_repeat_ngram_size": 0, "no_repeat_ngram_size": 0,
"penalty_alpha": 0, "penalty_alpha": 0,
"num_beams": 1, "num_beams": 1,
"length_penalty": 1, "length_penalty": 1,
"min_length": 0, "min_length": 0,
"encoder_rep_pen": 1, "encoder_rep_pen": 1,
"do_sample": true, "do_sample": true,
"early_stopping": false "early_stopping": false
} }

View File

@@ -1478,7 +1478,7 @@
<option value="windowai">Window AI / OpenRouter</option> <option value="windowai">Window AI / OpenRouter</option>
<option value="claude">Claude</option> <option value="claude">Claude</option>
</select> </select>
<form id="openai_form" data-source="openai"> <form id="openai_form" data-source="openai" action="javascript:void(null);" method="post" enctype="multipart/form-data">
<h4>OpenAI API key</h4> <h4>OpenAI API key</h4>
<span> <span>
<ol> <ol>
@@ -1516,7 +1516,7 @@
<a id="openai_api_usage" href="javascript:void(0);">View API Usage Metrics</a> <a id="openai_api_usage" href="javascript:void(0);">View API Usage Metrics</a>
</div> </div>
</form> </form>
<form id="claude_form" data-source="claude"> <form id="claude_form" data-source="claude" action="javascript:void(null);" method="post" enctype="multipart/form-data">
<h4>Claude API Key</h4> <h4>Claude API Key</h4>
<div> <div>
Get your key from <a target="_blank" href="https://console.anthropic.com/account/keys">Anthropic's developer console</a>. Get your key from <a target="_blank" href="https://console.anthropic.com/account/keys">Anthropic's developer console</a>.
@@ -1555,7 +1555,7 @@
</div> </div>
</form> </form>
<form id="windowai_form" data-source="windowai"> <form id="windowai_form" data-source="windowai" action="javascript:void(null);" method="post" enctype="multipart/form-data">
<div> <div>
<h4 data-i18n="Window AI Model">Window AI Model</h4> <h4 data-i18n="Window AI Model">Window AI Model</h4>
<select id="model_windowai_select"> <select id="model_windowai_select">
@@ -3556,4 +3556,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@@ -4692,16 +4692,18 @@ async function getSettings(type) {
$("#amount_gen_counter").text(`${amount_gen}`); $("#amount_gen_counter").text(`${amount_gen}`);
//Load which API we are using //Load which API we are using
if (settings.main_api != undefined) { if (settings.main_api == undefined) {
main_api = settings.main_api; settings.main_api = 'kobold';
$('#main_api').val(main_api);
$("#main_api option[value=" + main_api + "]").attr(
"selected",
"true"
);
changeMainAPI();
} }
main_api = settings.main_api;
$('#main_api').val(main_api);
$("#main_api option[value=" + main_api + "]").attr(
"selected",
"true"
);
changeMainAPI();
//Load User's Name and Avatar //Load User's Name and Avatar
user_avatar = settings.user_avatar; user_avatar = settings.user_avatar;

View File

@@ -35,6 +35,7 @@ async function loadSettings() {
} }
} }
initializeEmptySlots(extension_settings.quickReply.numberOfSlots);
generateQuickReplyElements(); generateQuickReplyElements();
for (let i = 1; i <= extension_settings.quickReply.numberOfSlots; i++) { for (let i = 1; i <= extension_settings.quickReply.numberOfSlots; i++) {
@@ -131,6 +132,15 @@ async function onQuickReplyNumberOfSlotsInput() {
extension_settings.quickReply.quickReplySlots.length = numberOfSlots; extension_settings.quickReply.quickReplySlots.length = numberOfSlots;
// Initialize new slots // Initialize new slots
initializeEmptySlots(numberOfSlots);
await loadSettings();
addQuickReplyBar();
moduleWorker();
saveSettingsDebounced();
}
function initializeEmptySlots(numberOfSlots) {
for (let i = 0; i < numberOfSlots; i++) { for (let i = 0; i < numberOfSlots; i++) {
if (!extension_settings.quickReply.quickReplySlots[i]) { if (!extension_settings.quickReply.quickReplySlots[i]) {
extension_settings.quickReply.quickReplySlots[i] = { extension_settings.quickReply.quickReplySlots[i] = {
@@ -140,11 +150,6 @@ async function onQuickReplyNumberOfSlotsInput() {
}; };
} }
} }
await loadSettings();
addQuickReplyBar();
moduleWorker();
saveSettingsDebounced();
} }
function generateQuickReplyElements() { function generateQuickReplyElements() {

View File

@@ -610,6 +610,14 @@ function loadPowerUserSettings(settings, data) {
power_user.font_scale = Number(localStorage.getItem(storage_keys.font_scale) ?? 1); power_user.font_scale = Number(localStorage.getItem(storage_keys.font_scale) ?? 1);
power_user.blur_strength = Number(localStorage.getItem(storage_keys.blur_strength) ?? 10); power_user.blur_strength = Number(localStorage.getItem(storage_keys.blur_strength) ?? 10);
if (power_user.chat_display === '') {
power_user.chat_display = chat_styles.DEFAULT;
}
if (power_user.waifuMode === '') {
power_user.waifuMode = false;
}
$('#trim_spaces').prop("checked", power_user.trim_spaces); $('#trim_spaces').prop("checked", power_user.trim_spaces);
$('#continue_on_send').prop("checked", power_user.continue_on_send); $('#continue_on_send').prop("checked", power_user.continue_on_send);
$('#auto_swipe').prop("checked", power_user.auto_swipe); $('#auto_swipe').prop("checked", power_user.auto_swipe);

View File

@@ -1142,8 +1142,8 @@ function convertCharacterBook(characterBook) {
entry.id = index; entry.id = index;
} }
result.entries[index] = { result.entries[entry.id] = {
uid: entry.id || index, uid: entry.id,
key: entry.keys, key: entry.keys,
keysecondary: entry.secondary_keys || [], keysecondary: entry.secondary_keys || [],
comment: entry.comment || "", comment: entry.comment || "",