diff --git a/src/lib/components/chat/Messages/RateComment.svelte b/src/lib/components/chat/Messages/RateComment.svelte index 9cc4f1927..e1a3529f3 100644 --- a/src/lib/components/chat/Messages/RateComment.svelte +++ b/src/lib/components/chat/Messages/RateComment.svelte @@ -55,7 +55,7 @@ selectedModel = $models.find((m) => m.id === message.selectedModelId); toast.success( $i18n.t('This response was generated by "{{model}}"', { - model: selectedModel.name + model: selectedModel ? (selectedModel?.name ?? selectedModel.id) : message.selectedModelId }) ); } @@ -83,7 +83,9 @@ {#if selectedModel}