diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts index 0bd8b8533..59bc57a99 100644 --- a/extensions/vscode/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -371,6 +371,7 @@ export function getSidebarContent( ) ); ideProtocolClient.configUpdate(configJson); + ideProtocolClient.openFile(getConfigJsonPath()); break; } case "deleteModel": { diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 010760094..c6cb9ffd3 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -136,7 +136,15 @@ const StyledListboxOption = styled(Listbox.Option)<{ selected: boolean }>` } `; -function ListBoxOption({ option, idx }: { option: Option; idx: number }) { +function ListBoxOption({ + option, + idx, + showDelete, +}: { + option: Option; + idx: number; + showDelete?: boolean; +}) { const [hovered, setHovered] = useState(false); return ( @@ -159,7 +167,7 @@ function ListBoxOption({ option, idx }: { option: Option; idx: number }) { >
{option.title} - {hovered && ( + {hovered && showDelete && ( { @@ -270,7 +278,12 @@ function ModelSelect(props: {}) { > {options.map((option, idx) => ( - + 1} + /> ))} {getMetaKeyLabel()}' to toggle diff --git a/gui/src/pages/modelconfig.tsx b/gui/src/pages/modelconfig.tsx index e2d1e6ba1..9b460e800 100644 --- a/gui/src/pages/modelconfig.tsx +++ b/gui/src/pages/modelconfig.tsx @@ -250,31 +250,6 @@ function ModelConfig() { /> ); })} - - { - if (!modelInfo || disableModelCards()) return; - const formParams: any = {}; - for (const d of modelInfo.collectInputFor || []) { - formParams[d.key] = - d.inputType === "text" - ? formMethods.watch(d.key) - : parseFloat(formMethods.watch(d.key)); - } - - const model = { - ...modelInfo.packages[0]?.params, - ...modelInfo.params, - ...formParams, - }; - addModel(model); - dispatch(setDefaultModel(model.title)); - navigate("/"); - }} - > -

Configure Model in config.json

-