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 data = await response.json();
if (data.success) {
// Load model preference
if (data.model) {
currentModel = data.model;
const config = MODEL_CONFIG[data.model] || MODEL_CONFIG['flash'];
document.getElementById('modelLabel').textContent = config.label;
document.getElementById('modelIcon').textContent = config.icon;
document.querySelectorAll('.thinking-option').forEach(opt => {
opt.classList.toggle('active', opt.dataset.model === data.model);
});
}
// Always start with Flash (free, fast) - ignore saved preference
currentModel = 'flash';
const config = MODEL_CONFIG['flash'];
document.getElementById('modelLabel').textContent = config.label;
document.getElementById('modelIcon').textContent = config.icon;
document.querySelectorAll('.thinking-option').forEach(opt => {
opt.classList.toggle('active', opt.dataset.model === 'flash');
});
// Load monthly cost
if (data.monthly_cost !== undefined) {
monthlyUsageCost = data.monthly_cost;