Skip to content

Commit dfecaa0

Browse files
committed
Update comment
1 parent 26978df commit dfecaa0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/api/providers/roo.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)