Skip to content

Commit 0f11416

Browse files
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 unified
1 parent ace787e commit 0f11416

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/UserInterface/EndpointManagementView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct EndpointManagementView: View {
7575

7676
private var headerSection: some View {
7777
VStack(alignment: .leading, spacing: 8) {
78-
Text("API Endpoints")
78+
Text("Remote Providers")
7979
.font(.title2)
8080
.fontWeight(.semibold)
8181
Text("Configure AI provider endpoints for multi-model support")

Sources/UserInterface/PreferencesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ struct PreferencesSectionRow: View {
400400

401401
struct GeneralPreferencesView: View {
402402
@EnvironmentObject private var endpointManager: EndpointManager
403-
@AppStorage("defaultModel") private var defaultModel: String = "gpt-4"
403+
@AppStorage("defaultModel") private var defaultModel: String = ""
404404
@State private var availableModels: [String] = []
405405
@State private var loadingModels: Bool = false
406406
@AppStorage("userName") private var userName: String = ""

0 commit comments

Comments
 (0)