Skip to content

Commit f1857e0

Browse files
committed
Spray Croco.Cpp name everywhere.
God, this is shameful. :X
1 parent b3867b2 commit f1857e0

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

klite.embd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<!--
4-
KoboldAI Lite WebUI is a standalone WebUI for use with KoboldAI United, AI Horde, or koboldcpp.
4+
KoboldAI Lite WebUI is a standalone WebUI for use with KoboldAI United, AI Horde, or KoboldCpp/Croco.Cpp.
55
It requires no dependencies, installation or setup.
66
Just copy this single static HTML file anywhere and open it in a browser, or from a webserver.
77
Please go to https://github.com/LostRuins/lite.koboldai.net for updates on KoboldAI Lite.
@@ -2936,7 +2936,7 @@ Current version indicated by LITEVER below.
29362936
var reattempt_local_port80 = false;
29372937
var localmodekey = "";
29382938
var kobold_endpoint_version = ""; //used to track problematic versions to avoid sending extra fields
2939-
var koboldcpp_version = ""; //detect if we are using koboldcpp
2939+
var koboldcpp_version = ""; //detect if we are using KoboldCpp/Croco.Cpp
29402940
var koboldcpp_version_obj = {};
29412941
var koboldcpp_has_vision = false;
29422942
var koboldcpp_has_multiplayer = false;
@@ -19612,7 +19612,7 @@ initializeInstructUIFunctionality();
1961219612
<div class="popupbg flex"></div>
1961319613
<div class="nspopup flexsize" style="margin-top: 4vh; background-color:#102840">
1961419614
<div class="popuptitlebar">
19615-
<div class="popuptitletext" title="Settings Menu">Kobold Lite / KoboldCPP / Croco.CPP Settings</div>
19615+
<div class="popuptitletext" title="Settings Menu">Kobold Lite / KoboldCPP/Croco.Cpp Settings</div>
1961619616
</div>
1961719617
<div><ul class="nav nav-tabs settingsnav">
1961819618
<li id="settingsmenuformat_tab" class="active"><a class="" href="#" title="Open Format Menu" onclick="display_settings_tab(0)">Format</a></li>
@@ -20092,7 +20092,7 @@ initializeInstructUIFunctionality();
2009220092
<div id="settingsmenumedia" class="settingsmenu hidden" onchange="setting_tweaked()">
2009320093
<div class="settingitem">
2009420094
<div class="settinglabel">
20095-
<div class="justifyleft settingsmall">Generate Images <span class="helpicon">?<span class="helptext">Use the AI Horde or a local KoboldCpp / Forge / A1111 instance to insert AI generated images into your story.</span></span></div>
20095+
<div class="justifyleft settingsmall">Generate Images <span class="helpicon">?<span class="helptext">Use the AI Horde or a local KoboldCpp/Croco.Cpp / Forge / A1111 instance to insert AI generated images into your story.</span></span></div>
2009620096
</div>
2009720097
<select title="Generate Images" class="form-control" id="generate_images_mode" style="height:20px;padding:0;margin:0px 0 0;" onchange="toggle_generate_images_mode(true)">
2009820098
<option value="0">[Disabled]</option>
@@ -20219,7 +20219,7 @@ initializeInstructUIFunctionality();
2021920219

2022020220

2022120221
<div class="settinglabel" style="border-top: 1px solid #12324f; margin-top: 4px;">
20222-
<div class="justifyleft settingsmall" style="margin-top: 4px;">Voice Input <span class="helpicon">?<span class="helptext">Requires KoboldCpp with Whisper model loaded. Enables Speech-To-Text voice input. Automatically listens for speech in 'On' mode (Voice Detection), or use Push-To-Talk (PTT).</span></span></div>
20222+
<div class="justifyleft settingsmall" style="margin-top: 4px;">Voice Input <span class="helpicon">?<span class="helptext">Requires KoboldCpp/Croco.Cpp with Whisper model loaded. Enables Speech-To-Text voice input. Automatically listens for speech in 'On' mode (Voice Detection), or use Push-To-Talk (PTT).</span></span></div>
2022320223
<select title="Speech To Text Mode" style="padding:1px; height:auto; font-size: 8pt;" class="form-control" id="voice_typing_mode">
2022420224
<option value="0">Off</option>
2022520225
<option value="1">Detect Voice</option>
@@ -20603,7 +20603,7 @@ initializeInstructUIFunctionality();
2060320603
</div>
2060420604

2060520605
<div class="context_tab_container" id="websearch_tab_container">
20606-
<div class="settinglabel" style="padding: 4px;">Search the Web for relavant information when using instruct mode<br>(Requires WebSearch enabled KoboldCpp)</div>
20606+
<div class="settinglabel" style="padding: 4px;">Search the Web for relavant information when using instruct mode<br>(Requires WebSearch enabled KoboldCpp/Croco.Cpp)</div>
2060720607
<div id="websearchunsupporteddiv" class="color_red hidden" style="font-weight:bold;padding:3px;font-size:12px">WebSearch Not Supported</div>
2060820608
<div class="settinglabel" style="padding: 4px;">
2060920609
<div class="justifyleft settingsmall" title="Enable WebSearch">Enable WebSearch </div>

koboldcpp.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,10 +2579,10 @@ def noscript_webui(self):
25792579
<html lang="en"><head>
25802580
<meta charset="utf-8">
25812581
<meta name="viewport" content="width=device-width, initial-scale=1">
2582-
<title>KoboldCpp NoScript Mode</title></head><body>
2583-
<h2>KoboldCpp NoScript Mode</h2>
2582+
<title>KoboldCpp/Croco.Cpp NoScript Mode</title></head><body>
2583+
<h2>KoboldCpp/Croco.Cpp NoScript Mode</h2>
25842584
<div>
2585-
<p>KoboldCpp can be used without Javascript enabled, however this is not recommended.
2585+
<p>KoboldCpp/Croco.Cpp can be used without Javascript enabled, however this is not recommended.
25862586
<br>If you have Javascript, please use <a href="/">KoboldAI Lite WebUI</a> instead.</p><hr>
25872587
<form action="/noscript">
25882588
Enter Prompt:<br>
@@ -2744,7 +2744,7 @@ def do_GET(self):
27442744
response_body = (json.dumps({"12345678-0000-0000-0000-000000000001":{"prompt":[0,"12345678-0000-0000-0000-000000000001",{"3":{"class_type":"KSampler","inputs":{"cfg":5.0,"denoise":1.0,"latent_image":["5",0],"model":["4",0],"negative":["7",0],"positive":["6",0],"sampler_name":"euler","scheduler":"normal","seed":1,"steps":20}},"4":{"class_type":"CheckpointLoaderSimple","inputs":{"ckpt_name":friendlysdmodelname}},"5":{"class_type":"EmptyLatentImage","inputs":{"batch_size":1,"height":512,"width":512}},"6":{"class_type":"CLIPTextEncode","inputs":{"clip":["4",1],"text":"prompt"}},"7":{"class_type":"CLIPTextEncode","inputs":{"clip":["4",1],"text":""}},"8":{"class_type":"VAEDecode","inputs":{"samples":["3",0],"vae":["4",2]}},"9":{"class_type":"SaveImage","inputs":{"filename_prefix":"kliteimg","images":["8",0]}}},{},["9"]],"outputs":{"9":{"images":[{"filename":"kliteimg_00001_.png","subfolder":"","type":"output"}]}},"status":{"status_str":"success","completed":imgdone,"messages":[["execution_start",{"prompt_id":"12345678-0000-0000-0000-000000000001","timestamp":1}],["execution_cached",{"nodes":[],"prompt_id":"12345678-0000-0000-0000-000000000001","timestamp":1}],["execution_success",{"prompt_id":"12345678-0000-0000-0000-000000000001","timestamp":1}]]},"meta":{"9":{"node_id":"9","display_node":"9","parent_node":None,"real_node_id":"9"}}}}).encode())
27452745

27462746
elif self.path.endswith(('/.well-known/serviceinfo')):
2747-
response_body = (json.dumps({"version":"0.2","software":{"name":"KoboldCpp","version":KcppVersion,"repository":"https://github.com/LostRuins/koboldcpp","homepage":"https://github.com/LostRuins/koboldcpp","logo":"https://raw.githubusercontent.com/LostRuins/koboldcpp/refs/heads/concedo/niko.ico"},"api":{"koboldai":{"name":"KoboldAI API","rel_url":"/api","documentation":"https://lite.koboldai.net/koboldcpp_api","version":KcppVersion},"openai":{"name":"OpenAI API","rel_url ":"/v1","documentation":"https://openai.com/documentation/api","version":KcppVersion}}}).encode())
2747+
response_body = (json.dumps({"version":"0.2","software":{"name":"KoboldCpp/Croco.Cpp","version":KcppVersion,"repository":"https://github.com/LostRuins/koboldcpp","homepage":"https://github.com/LostRuins/koboldcpp","logo":"https://raw.githubusercontent.com/LostRuins/koboldcpp/refs/heads/concedo/niko.ico"},"api":{"koboldai":{"name":"KoboldAI API","rel_url":"/api","documentation":"https://lite.koboldai.net/koboldcpp_api","version":KcppVersion},"openai":{"name":"OpenAI API","rel_url ":"/v1","documentation":"https://openai.com/documentation/api","version":KcppVersion}}}).encode())
27482748

27492749
elif self.path=="/props":
27502750
ctbytes = handle.get_chat_template()
@@ -3489,7 +3489,7 @@ def hide_tooltip(event):
34893489

34903490
if not any(runopts):
34913491
exitcounter = 999
3492-
exit_with_error(2,"KoboldCPP couldn't locate any backends to use (i.e Default, Vulkan, CLBlast, CuBLAS).\n\nTo use the program, please run the 'make' command from the directory.","No Backends Available!")
3492+
exit_with_error(2,"KoboldCPP/Croco.Cpp couldn't locate any backends to use (i.e Default, Vulkan, CLBlast, CuBLAS).\n\nTo use the program, please run the 'make' command from the directory.","No Backends Available!")
34933493

34943494
# Vars - should be in scope to be used by multiple widgets
34953495
gpulayers_var = ctk.StringVar(value="-1")
@@ -3916,7 +3916,7 @@ def changerunmode(a,b,c):
39163916
"Launch Browser": [launchbrowser, "Launches your default browser after model loading is complete"],
39173917
"Disable MMAP": [disablemmap, "Avoids using mmap to load models if enabled"],
39183918
"Use ContextShift": [contextshift, "Uses Context Shifting to reduce reprocessing.\nRecommended. Check the wiki for more info."],
3919-
"Remote Tunnel": [remotetunnel, "Creates a trycloudflare tunnel.\nAllows you to access koboldcpp from other devices over an internet URL."],
3919+
"Remote Tunnel": [remotetunnel, "Creates a trycloudflare tunnel.\nAllows you to access KoboldCpp/Croco.Cpp from other devices over an internet URL."],
39203920
"Quiet Mode": [quietmode, "Prevents all generation related terminal output from being displayed."]
39213921
}
39223922

@@ -4085,7 +4085,7 @@ def pickpremadetemplate():
40854085
network_tab = tabcontent["Network"]
40864086

40874087
# interfaces
4088-
makelabelentry(network_tab, "Port: ", port_var, 1, 150,tooltip="Select the port to host the KoboldCPP webserver.\n(Defaults to 5001)")
4088+
makelabelentry(network_tab, "Port: ", port_var, 1, 150,tooltip="Select the port to host the KoboldCPP/Croco.Cpp webserver.\n(Defaults to 5001)")
40894089
makelabelentry(network_tab, "Host: ", host_var, 2, 150,tooltip="Select a specific host interface to bind to.\n(Defaults to all)")
40904090

40914091
makecheckbox(network_tab, "Multiuser Mode", multiuser_var, 3,tooltiptxt="Allows requests by multiple different clients to be queued and handled in sequence.")
@@ -4217,7 +4217,7 @@ def kcpp_export_template():
42174217
makelabel(extra_tab, "Unpack KoboldCpp/Croco.Cpp to a local directory to modify its files.", 1, 0)
42184218
makelabel(extra_tab, "You can also launch via koboldcpp.py for faster startup.", 2, 0)
42194219
ctk.CTkButton(extra_tab , text = "Unpack KoboldCpp/Croco.Cpp To Folder", command = unpack_to_dir ).grid(row=3,column=0, stick="w", padx= 8, pady=2)
4220-
makelabel(extra_tab, "Export as launcher .kcppt template (Expert Only)", 4, 0,tooltiptxt="Creates a KoboldCpp launch template for others to use.\nEmbeds JSON files directly into exported file when saving.\nWhen loaded, forces the backend to be automatically determined.\nWarning! Not recommended for beginners!")
4220+
makelabel(extra_tab, "Export as launcher .kcppt template (Expert Only)", 4, 0,tooltiptxt="Creates a KoboldCpp/Croco.Cpp launch template for others to use.\nEmbeds JSON files directly into exported file when saving.\nWhen loaded, forces the backend to be automatically determined.\nWarning! Not recommended for beginners!")
42214221
ctk.CTkButton(extra_tab , text = "Generate LaunchTemplate", command = kcpp_export_template ).grid(row=5,column=0, stick="w", padx= 8, pady=2)
42224222

42234223
# launch
@@ -4606,7 +4606,7 @@ def save_config_gui():
46064606
pass
46074607

46084608
def load_config_gui(): #this is used to populate the GUI with a config file, whereas load_config_cli simply overwrites cli args
4609-
file_type = [("KoboldCpp Settings", "*.kcpps *.kcppt")]
4609+
file_type = [("KoboldCpp/Croco.Cpp Settings", "*.kcpps *.kcppt")]
46104610
global runmode_untouched
46114611
filename = askopenfilename(filetypes=file_type, defaultextension=file_type, initialdir=None)
46124612
if not filename or filename=="":
@@ -5618,7 +5618,7 @@ def main(launch_args,start_server=True):
56185618
embedded_kailite = f.read()
56195619
# patch it with extra stuff
56205620
origStr = "Sorry, KoboldAI Lite requires Javascript to function."
5621-
patchedStr = "Sorry, KoboldAI Lite requires Javascript to function.<br>You can use <a class=\"color_blueurl\" href=\"/noscript\">KoboldCpp NoScript mode</a> instead."
5621+
patchedStr = "Sorry, KoboldAI Lite requires Javascript to function.<br>You can use <a class=\"color_blueurl\" href=\"/noscript\">KoboldCpp/Croco.Cpp NoScript mode</a> instead."
56225622
embedded_kailite = embedded_kailite.decode("UTF-8","ignore")
56235623
embedded_kailite = embedded_kailite.replace(origStr, patchedStr)
56245624
embedded_kailite = embedded_kailite.encode()
@@ -5632,7 +5632,7 @@ def main(launch_args,start_server=True):
56325632
embedded_kcpp_docs = f.read()
56335633
print("Embedded API docs loaded.")
56345634
except Exception:
5635-
print("Could not find Embedded KoboldCpp API docs.")
5635+
print("Could not find Embedded KoboldCpp/Croco.Cpp API docs.")
56365636

56375637
try:
56385638
basepath = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
@@ -5915,7 +5915,7 @@ def range_checker(arg: str):
59155915
return f
59165916
return range_checker
59175917

5918-
parser = argparse.ArgumentParser(description=f'KoboldCpp Server - Version {KcppVersion}')
5918+
parser = argparse.ArgumentParser(description=f'KoboldCpp/Croco.Cpp Server - Version {KcppVersion}')
59195919
modelgroup = parser.add_mutually_exclusive_group() #we want to be backwards compatible with the unnamed positional args
59205920
modelgroup.add_argument("--model", metavar=('[filename]'), help="Model file to load", type=str, default="")
59215921
modelgroup.add_argument("model_param", help="Model file to load (positional)", nargs="?")

0 commit comments

Comments
 (0)