add llama3 template

This commit is contained in:
Concedo
2024-04-19 22:15:35 +08:00
parent 22c49e6b1e
commit 5b6ac9cc6e
+18 -4
View File
@@ -7,7 +7,7 @@ Just copy this single static HTML file anywhere and open it in a browser, or fro
Please go to https://github.com/LostRuins/lite.koboldai.net for updates on Kobold Lite.
If you are submitting a pull request for Lite, PLEASE use the above repo, not the KoboldCpp one.
Kobold Lite is under the AGPL v3.0 License unless otherwise exempted. Please do not remove this line.
Current version: 133
Current version: 134
-Concedo
-->
@@ -8689,6 +8689,10 @@ Current version: 133
document.getElementById('instruct_starttag').value = "<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>";
document.getElementById('instruct_endtag').value = "<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>";
break;
case "9": //llama 3 chat
document.getElementById('instruct_starttag').value = "<|eot_id|><|start_header_id|>user<|end_header_id|>";
document.getElementById('instruct_endtag').value = "<|eot_id|><|start_header_id|>assistant<|end_header_id|>";
break;
default:
break;
}
@@ -10737,6 +10741,11 @@ Current version: 133
cohere_payload.preamble = document.getElementById("cohere_preamble").value
}
if (document.getElementById("usecohereweb").checked) {
cohere_payload.connectors = [{"id": "web-search"}];
cohere_payload.max_tokens += 256;
}
last_request_str = JSON.stringify(cohere_payload);
let cohere_headers = {
'Content-Type': 'application/json',
@@ -13112,6 +13121,8 @@ Current version: 133
}
}
document.getElementById("btnlogitbias").disabled = !is_using_custom_ep();
}
function toggle_wi_sk(idx) {
@@ -14104,7 +14115,7 @@ Current version: 133
<div class="flex" id="actionmenu">
<div id="actionmenuitems">
<button type="button" class="btn btn-primary" id="btn_actmem" onclick="btn_memory()">Memory</button>
<button type="button" class="btn btn-primary" id="btn_actmem" onclick="btn_memory()">Context</button>
<button type="button" class="btn btn-primary" id="btn_actundo" onpointerdown="btn_back_longpress_start()" onpointerleave="btn_back_longpress_end()" onpointerup="btn_back_longpress_end()" onclick="btn_back()">Back</button>
<button type="button" class="btn btn-primary" id="btn_actredo" onpointerdown="btn_redo_longpress_start()" onpointerleave="btn_redo_longpress_end()" onpointerup="btn_redo_longpress_end()" onclick="btn_redo()">Redo</button>
<button type="button" class="btn btn-primary" id="btn_actretry" onclick="btn_retry()">Retry</button>
@@ -14151,7 +14162,7 @@ Current version: 133
<!-- A greatly simplified action menu for this mode -->
<div class="flex hidden" id="actionmenu2">
<div id="actionmenuitems2" class="box flex-push-right" style="margin-bottom: 2px;">
<button type="button" class="btn btn-primary" id="btn_actmem2" onclick="btn_memory()">Memory</button>
<button type="button" class="btn btn-primary" id="btn_actmem2" onclick="btn_memory()">Context</button>
<button type="button" class="btn btn-primary" id="btn_actundo2" onpointerdown="btn_back_longpress_start()" onpointerleave="btn_back_longpress_end()" onpointerup="btn_back_longpress_end()" onclick="btn_back()">Back</button>
<button type="button" class="btn btn-primary" id="btn_actredo2" onpointerdown="btn_redo_longpress_start()" onpointerleave="btn_redo_longpress_end()" onpointerup="btn_redo_longpress_end()" onclick="btn_redo()">Redo</button>
<button type="button" class="btn btn-primary" id="btn_actretry2" onclick="btn_retry()">Retry</button>
@@ -14433,6 +14444,8 @@ Current version: 133
</select>
<span class="color_green" style="font-weight: bold;">Please input Cohere API Key.</span><br><br>
<input class="form-control" type="password" id="custom_cohere_key" placeholder="Cohere API Key" value="" onfocus="focus_api_keys()" onblur="blur_api_keys()"><br>
<input type="checkbox" id="usecohereweb">
<div class="box-label" id="usecohereweblabel" title="">Use WebSearch</div>
<input type="checkbox" id="useocoherepreamble" onchange="togglecoherepreamble()">
<div class="box-label" id="useocoherepreamblelabel" title="">Use Preamble</div>
@@ -14739,6 +14752,7 @@ Current version: 133
<option value="6">ChatML</option>
<option value="7">KoboldAI Format</option>
<option value="8">CommandR</option>
<option value="9">Llama 3 Chat</option>
</select>
<table class="settingsmall text-center" style="border-spacing: 3px 2px; border-collapse: separate;">
<tr>
@@ -15105,7 +15119,7 @@ Current version: 133
<div class="popupbg flex"></div>
<div class="nspopup flexsizebig evenhigher">
<div class="popuptitlebar">
<div class="popuptitletext">Memory and Data</div>
<div class="popuptitletext">Context Data</div>
</div>
<div><ul class="nav nav-tabs settingsnav">
<li id="memory_tab" class="active"><a class="" href="#" onclick="display_memory_tab(0)">Memory</a></li>