fix(chat): Always start with Flash model (ignore saved preference)

- Flash is free and fast - best default for users
- Prevents accidental Pro usage and costs
- Users can still switch to Pro manually if needed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-01-29 12:08:06 +01:00
parent 1cee516950
commit fdf75ce152

View File

@ -1670,16 +1670,14 @@ async function loadModelSettings() {
const response = await fetch('/api/chat/settings'); const response = await fetch('/api/chat/settings');
const data = await response.json(); const data = await response.json();
if (data.success) { if (data.success) {
// Load model preference // Always start with Flash (free, fast) - ignore saved preference
if (data.model) { currentModel = 'flash';
currentModel = data.model; const config = MODEL_CONFIG['flash'];
const config = MODEL_CONFIG[data.model] || MODEL_CONFIG['flash']; document.getElementById('modelLabel').textContent = config.label;
document.getElementById('modelLabel').textContent = config.label; document.getElementById('modelIcon').textContent = config.icon;
document.getElementById('modelIcon').textContent = config.icon; document.querySelectorAll('.thinking-option').forEach(opt => {
document.querySelectorAll('.thinking-option').forEach(opt => { opt.classList.toggle('active', opt.dataset.model === 'flash');
opt.classList.toggle('active', opt.dataset.model === data.model); });
});
}
// Load monthly cost // Load monthly cost
if (data.monthly_cost !== undefined) { if (data.monthly_cost !== undefined) {
monthlyUsageCost = data.monthly_cost; monthlyUsageCost = data.monthly_cost;