add css class
This commit is contained in:
parent
9bb074e1f6
commit
aa493e022d
8 changed files with 22 additions and 8 deletions
|
@ -101,6 +101,8 @@
|
||||||
|
|
||||||
--textarea-border-color: var(--secondary-color-4);
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
--chat-id-color: var(--theme-nuance-color-4);
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
--button-alert-text-hover: var(--primary-color-1);
|
--button-alert-text-hover: var(--primary-color-1);
|
||||||
--button-alert-color-hover: var(--theme-purple-color);
|
--button-alert-color-hover: var(--theme-purple-color);
|
||||||
|
|
|
@ -281,7 +281,7 @@
|
||||||
await runLlama(prompt, {
|
await runLlama(prompt, {
|
||||||
...params.value,
|
...params.value,
|
||||||
slot_id: slot_id,
|
slot_id: slot_id,
|
||||||
stop: ["</s>", template("{{char}}:"), template("{{user}}:")],
|
stop: ["</s>", template("{{char}}"), template("{{user}}")],
|
||||||
}, "{{char}}");
|
}, "{{char}}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@
|
||||||
<form onsubmit=${submit}>
|
<form onsubmit=${submit}>
|
||||||
<div class="chat-input-container">
|
<div class="chat-input-container">
|
||||||
<textarea
|
<textarea
|
||||||
id="chat-input" placeholder="Say Something ..."
|
id="chat-input" placeholder="Say Something ...\n(Shift + Enter for new line)"
|
||||||
class="${generating.value ? 'loading' : null}"
|
class="${generating.value ? 'loading' : null}"
|
||||||
oninput=${(e) => message.value = e.target.value}
|
oninput=${(e) => message.value = e.target.value}
|
||||||
onkeypress=${enterSubmits}
|
onkeypress=${enterSubmits}
|
||||||
|
@ -418,7 +418,7 @@
|
||||||
html`<${Markdownish} text=${template(text)} />`
|
html`<${Markdownish} text=${template(text)} />`
|
||||||
}
|
}
|
||||||
if (user) {
|
if (user) {
|
||||||
return html`<p key=${index}><strong>${template(user)}:</strong> ${message}</p>`
|
return html`<p key=${index}><strong class="chat-id-color">${template(user)}</strong> ${message}</p>`
|
||||||
} else {
|
} else {
|
||||||
return isCompletionMode ?
|
return isCompletionMode ?
|
||||||
html`<span key=${index}>${message}</span>` :
|
html`<span key=${index}>${message}</span>` :
|
||||||
|
@ -655,9 +655,9 @@ const BoolField = ({ label, title, name, value }) => {
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
<optgroup label="Common Prompt-Styles">
|
<optgroup label="Common Prompt-Styles">
|
||||||
<option value="alpaca">Alpaca</option>
|
<option value="alpaca">Alpaca</option>
|
||||||
<option value="phi3">ChatML</option>
|
<option value="chatml">ChatML</option>
|
||||||
<option value="llama2">Llama 2</option>
|
<option value="llama2">Llama 2</option>
|
||||||
<option value="chatml">Phi-3</option>
|
<option value="phi3">Phi-3</option>
|
||||||
<option value="vicuna">Vicuna</option>
|
<option value="vicuna">Vicuna</option>
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
|
@ -314,8 +314,8 @@ user: "Instruction"
|
||||||
template: `{{history}}
|
template: `{{history}}
|
||||||
{{char}}
|
{{char}}
|
||||||
`,
|
`,
|
||||||
historyTemplate: `{{user}}
|
historyTemplate: `{{name}}
|
||||||
{{message}}<|end|>`,
|
{{message}}`,
|
||||||
char: "<|assistant|>",
|
char: "<|assistant|>",
|
||||||
user: "<|user|>"
|
user: "<|user|>"
|
||||||
},
|
},
|
||||||
|
|
|
@ -141,7 +141,7 @@ fieldset.names {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* titles of name fields*/
|
/* titles of params fields*/
|
||||||
fieldset.params {
|
fieldset.params {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template: "a a";
|
grid-template: "a a";
|
||||||
|
@ -176,6 +176,10 @@ fieldset.dropdowns {
|
||||||
border: 1px solid var(--border-color-2);
|
border: 1px solid var(--border-color-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-id-color {
|
||||||
|
color: var(--chat-id-color);
|
||||||
|
}
|
||||||
|
|
||||||
details {
|
details {
|
||||||
border: 1px solid var(--border-color-2);
|
border: 1px solid var(--border-color-2);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
|
@ -112,6 +112,8 @@
|
||||||
|
|
||||||
--textarea-border-color: var(--secondary-color-4);
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
--chat-id-color: var(--theme-nuance-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
|
|
|
@ -106,6 +106,8 @@
|
||||||
|
|
||||||
--textarea-border-color: var(--secondary-color-4);
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
--chat-id-color: var(--theme-nuance-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
|
|
|
@ -106,6 +106,8 @@
|
||||||
|
|
||||||
--textarea-border-color: var(--secondary-color-4);
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
--chat-id-color: var(--theme-nuance-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
|
|
|
@ -105,6 +105,8 @@
|
||||||
|
|
||||||
--textarea-border-color: var(--secondary-color-4);
|
--textarea-border-color: var(--secondary-color-4);
|
||||||
|
|
||||||
|
--chat-id-color: var(--theme-nuance-color-4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------- */
|
/* ------------------------------------------- */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue