mirror of
https://github.com/open-webui/open-webui
synced 2025-01-29 13:58:09 +00:00
fix
This commit is contained in:
parent
51265b4683
commit
c1a054de4a
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user