set default prompt to empty
This commit is contained in:
parent
dcdc11a5c4
commit
63de7201fa
1 changed files with 6 additions and 6 deletions
|
@ -23,13 +23,13 @@
|
||||||
var slot_id = -1;
|
var slot_id = -1;
|
||||||
|
|
||||||
const session = signal({
|
const session = signal({
|
||||||
prompt: "This is a conversation between a user and a friendly chatbot. The chatbot is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision.",
|
prompt: "",
|
||||||
template: "{{prompt}}\n\n{{history}}\n{{char}}:",
|
template: "{{prompt}}\n{{history}}{{char}}",
|
||||||
historyTemplate: "{{name}}: {{message}}",
|
historyTemplate: "{{name}}: {{message}}\n",
|
||||||
transcript: [],
|
transcript: [],
|
||||||
type: "chat", // "chat" | "completion"
|
type: "chat", // "chat" | "completion"
|
||||||
char: "Assistant",
|
char: "ASSISTANT",
|
||||||
user: "User",
|
user: "USER",
|
||||||
image_selected: ''
|
image_selected: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -654,7 +654,7 @@ return html`
|
||||||
id="prompt"
|
id="prompt"
|
||||||
class="persistent-input"
|
class="persistent-input"
|
||||||
name="prompt"
|
name="prompt"
|
||||||
placeholder="The following models do not support System Prompt by design: OpenChat, Orion, Phi-3, Starling, Yi-6/9/34B-Chat"
|
placeholder="[Note] The following models do not support System Prompts by design:\n• OpenChat\n• Orion\n• Phi-3\n• Starling\n• Yi-...-Chat"
|
||||||
value="${session.value.prompt}"
|
value="${session.value.prompt}"
|
||||||
oninput=${updateSession}
|
oninput=${updateSession}
|
||||||
></textarea>
|
></textarea>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue