diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte
index e1dabc2b6..2486aa6e9 100644
--- a/src/lib/components/chat/Messages/ResponseMessage.svelte
+++ b/src/lib/components/chat/Messages/ResponseMessage.svelte
@@ -14,7 +14,7 @@
const dispatch = createEventDispatcher();
- import { config, settings } from '$lib/stores';
+ import { config, models, settings } from '$lib/stores';
import { synthesizeOpenAISpeech } from '$lib/apis/audio';
import { imageGenerations } from '$lib/apis/images';
import {
@@ -34,7 +34,6 @@
import RateComment from './RateComment.svelte';
import CitationsModal from '$lib/components/chat/Messages/CitationsModal.svelte';
- export let modelfiles = [];
export let message;
export let siblings;
@@ -52,6 +51,9 @@
export let continueGeneration: Function;
export let regenerateResponse: Function;
+ let model = null;
+ $: model = $models.find((m) => m.id === message.model);
+
let edit = false;
let editedContent = '';
let editTextAreaElement: HTMLTextAreaElement;
@@ -338,17 +340,13 @@
dir={$settings.chatDirection}
>