assistant patches
Browse files- assistant.patch +50 -0
assistant.patch
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/examples/server/public/index-new.html b/examples/server/public/index-new.html
|
2 |
+
index c87dd8f1..d1aed025 100644
|
3 |
+
--- a/examples/server/public/index-new.html
|
4 |
+
+++ b/examples/server/public/index-new.html
|
5 |
+
@@ -1063,7 +1063,7 @@ return html`
|
6 |
+
return html`
|
7 |
+
<div class="mode-${session.value.type}">
|
8 |
+
<header>
|
9 |
+
- <h2>llama.cpp</h2>
|
10 |
+
+ <h2>modelname</h2>
|
11 |
+
<div class="dropdown">
|
12 |
+
<button class="dropbtn"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" stroke-width="2"/></svg></button>
|
13 |
+
<div class="dropdown-content" id="theme-selector">
|
14 |
+
diff --git a/examples/server/public/index.html b/examples/server/public/index.html
|
15 |
+
index 07fec6a3..0d873f3f 100644
|
16 |
+
--- a/examples/server/public/index.html
|
17 |
+
+++ b/examples/server/public/index.html
|
18 |
+
@@ -3,7 +3,7 @@
|
19 |
+
<meta charset="UTF-8">
|
20 |
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
21 |
+
<meta name="color-scheme" content="light dark">
|
22 |
+
- <title>llama.cpp - chat</title>
|
23 |
+
+ <title>assistantname - chat</title>
|
24 |
+
|
25 |
+
<style>
|
26 |
+
body {
|
27 |
+
@@ -288,12 +288,12 @@
|
28 |
+
var slot_id = -1;
|
29 |
+
|
30 |
+
const session = signal({
|
31 |
+
- prompt: "This is a conversation between User and Llama, a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision.",
|
32 |
+
+ prompt: "This is a conversation between User and assistantname, a friendly chatbot. assistantname is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision.",
|
33 |
+
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
34 |
+
historyTemplate: "{{name}}: {{message}}",
|
35 |
+
transcript: [],
|
36 |
+
type: "chat", // "chat" | "completion"
|
37 |
+
- char: "Llama",
|
38 |
+
+ char: "assistantname",
|
39 |
+
user: "User",
|
40 |
+
image_selected: ''
|
41 |
+
})
|
42 |
+
@@ -1258,7 +1258,7 @@
|
43 |
+
<header>
|
44 |
+
<div class="grid-container">
|
45 |
+
<div class="grid-item"></div>
|
46 |
+
- <div class="grid-item"><h1>llama.cpp</h1></div>
|
47 |
+
+ <div class="grid-item"><h1>modelname</h1></div>
|
48 |
+
<div class="grid-item"><a class="customlink" href="index-new.html">New UI</a></div>
|
49 |
+
</div>
|
50 |
+
</header>
|