Commit 0f11416
committed
fix(preferences): Remove gpt-4 default and update Remote Providers title
**Problem 1 (Issue 4): Default model shows gpt-4 when no provider configured**
- PreferencesView.swift line 403 had hardcoded fallback: defaultModel = "gpt-4"
- Causes confusion for users without OpenAI API key
- ConversationModel.swift getDefaultModel() already returns empty string
**Problem 2 (Issue 3): Remote Providers tab title shows 'API Endpoints'**
- PreferencesSection enum was renamed to 'Remote Providers'
- But EndpointManagementView.swift line 78 still showed old title
**Solution:**
- Changed default value from "gpt-4" to "" in PreferencesView.swift
- Updated headerSection title from "API Endpoints" to "Remote Providers"
- Now consistent with PreferencesSection enum naming
**Files changed:**
- Sources/UserInterface/PreferencesView.swift line 403: Empty default
- Sources/UserInterface/EndpointManagementView.swift line 78: Title update
**Testing:**
✅ Build: PASS
✅ Code review: Matches existing getDefaultModel() behavior
✅ Consistency: Remote Providers naming unified1 parent ace787e commit 0f11416
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments