diff --git a/frontend/src/lib/components/copilot/ScriptGen.svelte b/frontend/src/lib/components/copilot/ScriptGen.svelte index a9f342eaa1..a0b141d86d 100644 --- a/frontend/src/lib/components/copilot/ScriptGen.svelte +++ b/frontend/src/lib/components/copilot/ScriptGen.svelte @@ -8,13 +8,7 @@ import type Editor from '../Editor.svelte' import Popover from '$lib/components/meltComponents/Popover.svelte' import TooltipV2 from '$lib/components/meltComponents/Tooltip.svelte' - import { - dbSchemas, - copilotInfo, - type DBSchema, - workspaceStore, - copilotSessionModel - } from '$lib/stores' + import { dbSchemas, copilotInfo, type DBSchema, workspaceStore } from '$lib/stores' import type DiffEditor from '../DiffEditor.svelte' import { scriptLangToEditorLang } from '$lib/scripts' import type SimpleEditor from '../SimpleEditor.svelte' @@ -31,6 +25,7 @@ import { isInitialCode } from '$lib/script_helpers' import { twMerge } from 'tailwind-merge' import { onDestroy } from 'svelte' + import ProviderModelSelector from './chat/ProviderModelSelector.svelte' // props export let iconOnly: boolean = false @@ -333,7 +328,7 @@ setTimeout(() => { autoResize() }, 0) - }} + }} bind:element={button} iconOnly title="Generate code from prompt" @@ -366,7 +361,7 @@ setTimeout(() => { autoResize() }, 0) - }} + }} bind:element={button} {iconOnly} > @@ -404,33 +399,7 @@ -
- - {#if $copilotInfo.aiModels.length > 1} - - {:else if $copilotInfo.aiModels.length === 1} -
- {$copilotInfo.aiModels[0].model} -
- {/if} - - {$copilotInfo.aiModels.length > 1 - ? $copilotSessionModel - : $copilotInfo.aiModels[0].model} - -
-
+