webui: add chat-style prompt
@ref https://github.com/ggerganov/llama.cpp/issues/771#issuecomment-1499900809
This commit is contained in:
parent
8e378c0734
commit
527fc92240
6
webui.go
6
webui.go
@ -42,7 +42,11 @@ button {
|
||||
</style>
|
||||
<body>
|
||||
<h2>🦙 ` + html.EscapeString(AppTitle) + `</h2>
|
||||
<textarea id="main" autofocus></textarea>
|
||||
<textarea id="main" autofocus>A chat between a curious human and an artificial intelligence assistant.
|
||||
The assistant gives helpful, detailed, and polite answers to the human's questions.
|
||||
|
||||
### Human: What is the capital city of New Zealand?
|
||||
### Assistant:</textarea>
|
||||
<button id="generate">▶️ Generate</button>
|
||||
<button id="interrupt" disabled>⏸️ Interrupt</button>
|
||||
<span id="state"></span>
|
||||
|
Loading…
Reference in New Issue
Block a user