File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -143,19 +143,18 @@ export class RooHandler extends BaseOpenAiCompatibleProvider<string> {
143143 } )
144144 this . modelsLoaded = true
145145
146- // Use dynamic models directly - no static fallbacks needed
147146 this . mergedModels = dynamicModels as Record < string , ModelInfo >
148147 } catch ( error ) {
149148 console . error ( "[RooHandler] Error loading dynamic models:" , error )
150- // Keep using static models as fallback
149+ // Models will remain empty until successfully loaded
151150 this . modelsLoaded = false
152151 }
153152 }
154153
155154 override getModel ( ) {
156155 const modelId = this . options . apiModelId || rooDefaultModelId
157156
158- // Try to find the model in the merged models (which includes both static and dynamic)
157+ // Try to find the model in the dynamically loaded models
159158 const modelInfo = this . mergedModels [ modelId ]
160159
161160 if ( modelInfo ) {
You can’t perform that action at this time.
0 commit comments