updatede lite, up ver (+1 squashed commits)

Squashed commits:

[f1f899070] up version
This commit is contained in:
Concedo
2026-03-21 17:36:05 +08:00
parent fdfb713d91
commit 89e2397014
2 changed files with 15 additions and 15 deletions
+14 -14
View File
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->
<head>
<script id="init-config">
const LITEVER = 320;
const LITEVER = 321;
const urlParams = new URLSearchParams(window.location.search);
var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -3663,9 +3663,9 @@ Current version indicated by LITEVER below.
"desc":"After an unfortunate encounter with Truck-Kun while crossing the road, you awaken and find yourself transported to a strange new world.",
"opmode":2,
"prompt":"The last thing you remembered was a loud screech. You tried to move, to get out of the way, but it was too late. You felt a sickening impact, and then everything went black.\n\nYou open your eyes, and suddenly find that you're no longer on the street. You're clearly unharmed, but you feel... different. In fact, you quickly realize you're in a strange place unlike anywhere you've ever known.",
"adventure_context_mod":false,
"adventure_context_mod":true,
"adventure_switch_mode":1,
"memory": "[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.][This is a fantasy isekai adventure. Are you the Chosen One? After being hit by a truck, you somehow find yourself transported to a mystical fantasy world full of magic and adventure.]",
"memory": "[This is a fantasy isekai adventure. Are you the Chosen One? After being hit by a truck, you somehow find yourself transported to a mystical fantasy world full of magic and adventure.]",
"authorsnote": "",
"worldinfo": []
},
@@ -3675,9 +3675,9 @@ Current version indicated by LITEVER below.
"desc":"You've just joined the Adventurer's Guild, and are ready to make your mark on this world! Accompanied by your party of adventurers, you'll delve into dangerous magical dungeons full of monsters in your quest for treasure and riches!",
"opmode":2,
"prompt":"It's been a few days since you joined the Adventurer's Guild, and you're preparing for your first dungeon delve, accompanied by your party of adventurers.\n\nAfter a few days of traveling, your party finally arrives at the mystic dungeon. You're filled with anticipation as you approach. The dungeon entrance stands before you, dark and foreboding. The stone walls are slick with moisture, and the air smells of mold and decay.",
"adventure_context_mod":false,
"adventure_context_mod":true,
"adventure_switch_mode":1,
"memory": "[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.][You delve into dangerous magical dungeons full of monsters in your quest for treasure and riches.]",
"memory": "[You delve into dangerous magical dungeons full of monsters in your quest for treasure and riches.]",
"authorsnote": "",
"worldinfo": []
},
@@ -3687,9 +3687,9 @@ Current version indicated by LITEVER below.
"desc":"The year is 2038. A full scale global thermonuclear exchange has wiped out nearly all of the world population, and left most cities as radioactive wastelands. Running out of supplies, you must leave your bunker and scavenge to find a new home in the ruins of civilization.",
"opmode":2,
"prompt":"The year is 2038. A full scale global thermonuclear exchange has wiped out nearly all of the world population, and left most cities as radioactive wastelands. Running out of supplies, you must leave your bunker and scavenge to find a new home in the ruins of civilization.\n\nEmerging from your shelter, you squint as the harsh sunlight blinds you. For a moment, you're disoriented, your eyes struggling to adjust to the brightness of the new world outside. As your vision clears, you step forward, and take in the barren wasteland that stretches out before you.",
"adventure_context_mod":false,
"adventure_context_mod":true,
"adventure_switch_mode":1,
"memory": "[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.]\n",
"memory": "",
"authorsnote": "",
"worldinfo": []
},
@@ -3948,9 +3948,9 @@ Current version indicated by LITEVER below.
"desc":"Shipwrecked on a deserted island with your sister.",
"opmode":2,
"prompt":"You and your sister Megan were enjoying a sailing vacation in the tropics, when your yacht got caught in the worst thunderstorm of your life. After a harrowing escape as your boat capsized and sank, you now find yourself shipwrecked on a deserted island.\n\nAs you struggle to get up, tasting the salty sea breeze and brushing the coarse sand off your body, you see your sister laying on the beach a short distance away, unconscious but alive.",
"adventure_context_mod":false,
"adventure_context_mod":true,
"adventure_switch_mode":1,
"memory": "[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.]\n",
"memory": "",
"authorsnote": "",
"worldinfo": []
},
@@ -3960,7 +3960,7 @@ Current version indicated by LITEVER below.
"desc": "49 B.C.E. - Join Julius Caesar as Fabius, his trusted centurion, on the precipice of crossing the Rubicon and declaring the civil war that will ultimately shape the future of the world. Alea iacta est!",
"opmode": 2,
"prompt": "The shrill cry of a rooster crowing wrenches you from sleep within the confines of your modest canvas tent on the banks of the Rubicon. Just as you groggily start to gather your gear, a messenger legionnaire arrives, his eyes gleaming with anticipation. \"My esteemed Centurion, General Julius Caesar requests your presence, along with the other officers. There is a matter of great import he wishes to discuss.\"\n\nYou nod wearily, rubbing bleary eyes. \"Allow me to prepare first.\" Thoughts swirl like a maelstrom in your mind, as whispers of stalled negotiations between Caesar and the Senate echo through the camp's grapevine. It seems an opportune moment to seize control, to launch a rebellion, and your heart races with the prospect. Steadying yourself, you don your uniform and stride forth to meet the general.\n\nAs you enter the opulent tent, its opalescent silks rippling softly in the tentative morning light, Caesar greets you with an amiable smile. \"Greetings, Fabius,\" he intones, his voice every bit as commanding as his towering presence. \"I am grateful for your attendance so that we may deliberate on the matters at hand.\"\n\nCaesar then looks at the other officers inside the tent. \"Thank you for coming, centurions. As you know, the Senate has refused to negotiate in good faith. They demand I disband my army and return to Rome unarmed, where they aim to prosecute me. I cannot comply. After so many conquests, so much spilled blood, they would strip me of my dignitas. The time has come to choose a course of action that honors my men's sacrifices.\"\n\n\"There are no easy paths forward. We stand at the Rubicon river, the point of no return. Crossing it would mean civil war. But my honor, and the honor of the 13th Legion, is at stake. I ask you now, as my most trusted officers - shall we cross the Rubicon?\"\n\nCaesar pauses, letting his words sink in. Your heart hammers in your chest. Is he suggesting open rebellion? What will you do next?\n",
"adventure_context_mod": false,
"adventure_context_mod": true,
"adventure_switch_mode": 1,
"memory": "[You are Lucius Fabius Marcellus, a centurion on the 13th Legion. You saved Caesar's life once during the battle of Alesia, earning you his trust and a part of his inner circle]\n[49 B.C.E: Julius Caesar crosses the Rubicon, triggers a civil war and the downfall of the Roman Republic]\n[Caesarean legions: In Gaul for the winter; Pompeian legions: in Iberia, Greece, Africa]\n[Labienus will join Pompey if Caesar declares Civil War; Pompey and the senate will flee to Greece if Caesar march towards Rome; Pompey will be killed by Ptolemy XIII if he flees to Egypt]",
"authorsnote": "",
@@ -13323,7 +13323,7 @@ Current version indicated by LITEVER below.
var opt = data.data[i];
sortedarr.push(opt.id);
}
sortedarr.sort();
sortedarr.sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' }));
for(var i=0;i<sortedarr.length;++i)
{
var el = document.createElement("option");
@@ -17292,7 +17292,7 @@ Current version indicated by LITEVER below.
truncated_context = truncated_memory + truncated_context.substring(excess_len);
let long_story = (truncated_context.length>1800?true:false);
truncated_context += "\n### Instruction:Summarize the above text in a single paragraph of up to "+(long_story?"ten":"five")+" detailed sentences.\n### Response:";
truncated_context += "\n### Instruction: Summarize the above text in a single paragraph of up to "+(long_story?"ten":"five")+" detailed sentences.\n### Response:";
truncated_context = replace_placeholders(truncated_context);
let submit_payload = {
"prompt": truncated_context,
@@ -19725,8 +19725,8 @@ Current version indicated by LITEVER below.
//for adventure mode, inject hidden context, even more if there's nothing in memory
if (localsettings.opmode == 2 && localsettings.adventure_context_mod)
{
let injected = "[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.]\n";
injected += "\n\n\> Look\n\nYou look around, observing yourself and your surroundings.\n\n"
let injected = "\n### Instruction:\n[Interactive Fiction: Game Mode Enabled]\n[The user is playing a choose-your-own-adventure game. Please input action, and a short but descriptive response of the outcome will be generated. Include plenty of details in each scene whenever necessary.]\n### Response:\n";
injected += "\n\n\> New Session\n\nYou have started a new game session. Good luck!\n\n"
truncated_context = injected + truncated_context;
}
+1 -1
View File
@@ -71,7 +71,7 @@ dry_seq_break_max = 128
extra_images_max = 4 # for kontext/qwen img
# global vars
KcppVersion = "1.110"
KcppVersion = "1.111"
showdebug = True
kcpp_instance = None #global running instance
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_config_target":"", "last_active_timestamp":datetime.now(),"current_model":"initial_model"}