This commit is contained in:
Timothy J. Baek 2024-10-23 15:35:40 -07:00
parent 51265b4683
commit c1a054de4a

View File

@ -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}
<div class="text-xs font-medium translate-y-1.5">
{$i18n.t('This response was generated by "{{model}}"', { model: selectedModel.name })}
{$i18n.t('This response was generated by "{{model}}"', {
model: selectedModel ? (selectedModel?.name ?? selectedModel.id) : message.selectedModelId
})}
</div>
{/if}