Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(ai): add fallback default model when Ollama model is empty

rcourtman0e8c8d51cafa
diff --git a/internal/ai/providers/ollama.go b/internal/ai/providers/ollama.go
index f758680d21..34eead38f8 100644
--- a/internal/ai/providers/ollama.go
+++ b/internal/ai/providers/ollama.go
@@ -98,6 +98,10 @@ func (c *OllamaClient) Chat(ctx context.Context, req ChatRequest) (*ChatResponse
if model == "" {
model = c.model
}
+ // Ultimate fallback - if no model configured anywhere, use llama3
+ if model == "" {
+ model = "llama3"
+ }
ollamaReq := ollamaRequest{
Model: model,