* 1. Model from active conversation's last assistant response (if loaded)
* 2. Model from active conversation's last assistant response (if not loaded)
* 3. First loaded model (not from active conversation)
- * 4. First available model
+ * 4. A favorite model
+ * 5. First available model
*/
async ensureFirstModelSelected(): Promise<void> {
if (this.selectedModelName) return;
return;
}
+ // Try loading a favorite model
+ const favorite = this.favoriteModelIds.values().next()?.value
+ if (favorite) {
+ await this.selectModelById(favorite);
+ return;
+ }
+
// Fall back to the first available model
await this.selectModelById(availableModels[0].id);
}