File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
webview-ui/src/components/settings Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ const ApiOptions = ({
218218 const tempConfig = { ...apiConfiguration , apiProvider : value , apiModelId : modelId }
219219 const modelError = getModelValidationError ( tempConfig , routerModels , organizationAllowList )
220220 // if we have any errors, reset the modelId to default value to prevent ambiguity
221+ // otherwise, keep the modelId as is
221222 if ( modelError ) {
222223 setApiConfigurationField ( field , defaultValue || "" )
223224 }
@@ -232,9 +233,6 @@ const ApiOptions = ({
232233 openRouterDefaultModelId ,
233234 )
234235 break
235- case "glama" :
236- validateAndResetModel ( apiConfiguration . glamaModelId , "glamaModelId" , glamaDefaultModelId )
237- break
238236 case "unbound" :
239237 validateAndResetModel ( apiConfiguration . unboundModelId , "unboundModelId" , unboundDefaultModelId )
240238 break
You can’t perform that action at this time.
0 commit comments