feat: chat action integration

This commit is contained in:
Timothy J. Baek
2024-07-11 18:47:38 -07:00
parent eb10001eb7
commit 14c0efe300
4 changed files with 78 additions and 1 deletions
@@ -55,6 +55,7 @@
export let copyToClipboard: Function;
export let continueGeneration: Function;
export let regenerateResponse: Function;
export let chatActionHandler: Function;
let model = null;
$: model = $models.find((m) => m.id === message.model);
@@ -1030,6 +1031,7 @@
? 'visible'
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
on:click={() => {
chatActionHandler(action.id, message.model, message.id);
console.log('action');
}}
>