mirror of
https://github.com/open-webui/open-webui
synced 2025-01-29 13:58:09 +00:00
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:
commit
6447b484c1
@ -9,6 +9,8 @@
|
|||||||
import FileItem from '$lib/components/common/FileItem.svelte';
|
import FileItem from '$lib/components/common/FileItem.svelte';
|
||||||
import Collapsible from '$lib/components/common/Collapsible.svelte';
|
import Collapsible from '$lib/components/common/Collapsible.svelte';
|
||||||
|
|
||||||
|
import { user } from '$lib/stores';
|
||||||
|
|
||||||
export let models = [];
|
export let models = [];
|
||||||
|
|
||||||
export let chatFiles = [];
|
export let chatFiles = [];
|
||||||
@ -78,7 +80,7 @@
|
|||||||
<Collapsible title={$i18n.t('Advanced Params')} open={true}>
|
<Collapsible title={$i18n.t('Advanced Params')} open={true}>
|
||||||
<div class="text-sm mt-1.5" slot="content">
|
<div class="text-sm mt-1.5" slot="content">
|
||||||
<div>
|
<div>
|
||||||
<AdvancedParams bind:params />
|
<AdvancedParams admin={$user?.role === 'admin'} bind:params />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Collapsible>
|
</Collapsible>
|
||||||
|
Loading…
Reference in New Issue
Block a user