From d379bf412a29c47704c0007f77341beaa6498420 Mon Sep 17 00:00:00 2001 From: Ken Lopez Date: Tue, 27 Jan 2026 03:06:28 -0500 Subject: [PATCH] fix: Correct OpenCode dynamic models API endpoint URL The fetchOpencodeModels function was calling '/api/opencode/models' which returns 404. Changed to '/api/setup/opencode/models' which correctly returns the dynamic models. This fixes an issue where enabled OpenCode dynamic models (e.g., local Ollama models) were not appearing in the Model Defaults dropdown selectors despite being visible and enabled in the OpenCode Settings page. --- apps/ui/src/store/app-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ui/src/store/app-store.ts b/apps/ui/src/store/app-store.ts index aa4ff227..c0735355 100644 --- a/apps/ui/src/store/app-store.ts +++ b/apps/ui/src/store/app-store.ts @@ -2512,7 +2512,7 @@ export const useAppStore = create()((set, get) => ({ authMethod?: string; }>; error?: string; - }>('/api/opencode/models'); + }>('/api/setup/opencode/models'); if (data.success && data.models) { // Filter out Bedrock models