From 96e9a6d38bbfac8b47cbdb6751943931ecc59830 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Mar 2026 06:33:00 -0700 Subject: [PATCH] Fix Ollama: remove duplicate stale configMap in AIChatPanel AIChatPanel had its own hardcoded configMap with the old llama-server URL (localhost:8080) and field names (local_model_path). Every chat message reconfigured the provider with these wrong values, overriding the correct settings applied at startup. Fix: replace the duplicate with a call to the shared configureAIProvider(). Also strip trailing slashes from ollama_url before appending /v1 to prevent double-slash URLs (http://localhost:11434//v1). Co-Authored-By: Claude Opus 4.6 --- src/lib/components/AIChatPanel.svelte | 14 ++------------ src/lib/stores/settings.ts | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/lib/components/AIChatPanel.svelte b/src/lib/components/AIChatPanel.svelte index 8e4ac28..e5ba88a 100644 --- a/src/lib/components/AIChatPanel.svelte +++ b/src/lib/components/AIChatPanel.svelte @@ -1,7 +1,7 @@