Make /model provider switch activate selected tier in minimal TUI
This commit is contained in:
@@ -287,12 +287,14 @@ export class MinimalTui {
|
||||
});
|
||||
router.setClient(tier, client, providerModel);
|
||||
router.setTierStrict(tier, true);
|
||||
router.setTier(tier);
|
||||
|
||||
if (this.config.agent && tier === router.getTier()) {
|
||||
if (this.config.agent) {
|
||||
this.config.agent.setModelTier(tier);
|
||||
}
|
||||
|
||||
console.log(`${colors.gray}Set ${tier} to:${colors.reset} ${providerModel}`);
|
||||
console.log(`${colors.gray}Switched to model:${colors.reset} ${tier}`);
|
||||
console.log(`${colors.gray}Fallbacks for ${tier} disabled (strict tier mode).${colors.reset}\n`);
|
||||
} catch (error) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
|
||||
Reference in New Issue
Block a user