File tree Expand file tree Collapse file tree
browser/features/Settings/Sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ export function ModelsSection() {
290290 mappedTo
291291 ) ;
292292
293- // With flattened structure, openai-compatible/{instanceId} is just a regular provider
293+ // Optimistic update - returns new models array for API call
294294 const updatedModels = updateModelsOptimistically ( editing . provider , ( models ) => {
295295 const nextModels : ProviderModelEntry [ ] = [ ] ;
296296 let replaced = false ;
Original file line number Diff line number Diff line change @@ -674,9 +674,8 @@ export class ProviderModelFactory {
674674
675675 // Check if provider is supported (prevents silent failures when adding to PROVIDER_REGISTRY
676676 // but forgetting to implement handler below)
677- // Note: "openai-compatible" and "openai-compatible/*" are special multi-instance providers handled separately
678- const isOpenAICompatibleProvider =
679- providerName === "openai-compatible" || providerName . startsWith ( "openai-compatible/" ) ;
677+ // Note: "openai-compatible/*" are special multi-instance providers handled separately
678+ const isOpenAICompatibleProvider = providerName . startsWith ( "openai-compatible/" ) ;
680679 const isSupportedProvider = providerName in PROVIDER_REGISTRY || isOpenAICompatibleProvider ;
681680 if ( ! isSupportedProvider ) {
682681 return Err ( {
@@ -1543,8 +1542,7 @@ export class ProviderModelFactory {
15431542 }
15441543
15451544 // Handle OpenAI-compatible providers (dynamic provider instances)
1546- const isOpenAICompatible =
1547- providerName === "openai-compatible" || providerName . startsWith ( "openai-compatible/" ) ;
1545+ const isOpenAICompatible = providerName . startsWith ( "openai-compatible/" ) ;
15481546
15491547 if ( isOpenAICompatible ) {
15501548 const instanceId = providerName . slice ( "openai-compatible/" . length ) ;
You can’t perform that action at this time.
0 commit comments