feat: chat action integration
This commit is contained in:
@@ -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');
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user