Cqn enter key
This commit is contained in:
+8
-4
@@ -1,14 +1,18 @@
|
||||
<div class="chat-container mt-5">
|
||||
|
||||
<hx hx-get="/loadChat" hx-trigger="load" hx-swap="outerHTML"></hx>
|
||||
<hx hx-get="/loadChat" hx-trigger="load once" hx-swap="outerHTML"></hx>
|
||||
|
||||
|
||||
<div class="chat-input-container mb-5">
|
||||
<div class="textarea-wrapper">
|
||||
<textarea class="textarea" placeholder="Type your message here..." name="message"></textarea>
|
||||
<textarea {% if not IsLogin or not HaveKey %}disabled{% endif %} class="textarea"
|
||||
placeholder="Type your message here..." name="message"></textarea>
|
||||
<div class="button-group">
|
||||
<hx hx-get="/loadModelSelection" hx-trigger="load" hx-swap="outerHTML" hx-target="this"></hx>
|
||||
<hx hx-get="/loadSettings" hx-trigger="load" hx-swap="outerHTML" hx-target="this"></hx>
|
||||
<hx hx-get="/loadUsageKPI" hx-trigger="load" hx-swap="outerHTML" hx-target="this"></hx>
|
||||
<button type="submit" class="send-button button is-primary is-small" hx-post="/requestMultipleMessages"
|
||||
<hx hx-get="/loadModelSelection" hx-trigger="load" hx-swap="outerHTML" hx-target="this"></hx>
|
||||
<button {% if not IsLogin or not HaveKey %}disabled{% endif %} type="submit"
|
||||
class="send-button button is-primary is-small" hx-post="/requestMultipleMessages"
|
||||
hx-swap="beforeend settle:200ms" hx-target="#chat-messages" id="chat-input-send-btn"
|
||||
class="chat-input" hx-include="[name='message'], [name^='model-check-']">Send</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user