Jade/views/partials/model-selection-btn.html
MrBounty 3266c8787e SSE to WebSocket
I needed to ping pong the content of the message because it was too long
for a SSE event. I swaped to websocket instead
2024-08-05 18:22:51 +02:00

14 lines
556 B
HTML

<button class="button is-small is-primary message-button is-outlined mr-1"
id="selection-btn-{{ message.LLMID }}-{{ ConversationAreaId }}"
hx-get="/messageContent?id={{ message.Id }}"
hx-target="#content-{{ ConversationAreaId }}"
onclick="updateIcon('{{ message.Icon }}', '{{ ConversationAreaId }}')"
title="{{ message.Name }}">
<span class="icon is-small">
<img src="{{ message.Icon }}"
alt="{{ message.Name }}"
style="max-height: 100%;
max-width: 100%">
</span>
</button>