mirror of
https://github.com/open-webui/open-webui
synced 2025-05-21 05:35:18 +00:00
refac: arena model modal
This commit is contained in:
parent
dc8c85c33d
commit
8eaff8033a
@ -11,7 +11,7 @@
|
|||||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||||
import Plus from '$lib/components/icons/Plus.svelte';
|
import Plus from '$lib/components/icons/Plus.svelte';
|
||||||
import Model from './Evaluations/Model.svelte';
|
import Model from './Evaluations/Model.svelte';
|
||||||
import ModelModal from './Evaluations/ModelModal.svelte';
|
import ArenaModelModal from './Evaluations/ArenaModelModal.svelte';
|
||||||
import { getConfig, updateConfig } from '$lib/apis/evaluations';
|
import { getConfig, updateConfig } from '$lib/apis/evaluations';
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
@ -65,7 +65,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ModelModal
|
<ArenaModelModal
|
||||||
bind:show={showAddModel}
|
bind:show={showAddModel}
|
||||||
on:submit={async (e) => {
|
on:submit={async (e) => {
|
||||||
addModelHandler(e.detail);
|
addModelHandler(e.detail);
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
import Cog6 from '$lib/components/icons/Cog6.svelte';
|
import Cog6 from '$lib/components/icons/Cog6.svelte';
|
||||||
import ModelModal from './ModelModal.svelte';
|
import ArenaModelModal from './ArenaModelModal.svelte';
|
||||||
export let model;
|
export let model;
|
||||||
|
|
||||||
let showModel = false;
|
let showModel = false;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ModelModal
|
<ArenaModelModal
|
||||||
bind:show={showModel}
|
bind:show={showModel}
|
||||||
edit={true}
|
edit={true}
|
||||||
{model}
|
{model}
|
||||||
|
Loading…
Reference in New Issue
Block a user