Merge pull request #4555 from 5E-324/ollama-params-fix

fix: Ollama parameters not shown in Chat Controls even if the current user is admin.
This commit is contained in:
Timothy Jaeryang Baek 2024-08-13 12:13:40 +02:00 committed by GitHub
commit 6447b484c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@
import FileItem from '$lib/components/common/FileItem.svelte';
import Collapsible from '$lib/components/common/Collapsible.svelte';
import { user } from '$lib/stores';
export let models = [];
export let chatFiles = [];
@ -78,7 +80,7 @@
<Collapsible title={$i18n.t('Advanced Params')} open={true}>
<div class="text-sm mt-1.5" slot="content">
<div>
<AdvancedParams bind:params />
<AdvancedParams admin={$user?.role === 'admin'} bind:params />
</div>
</div>
</Collapsible>