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.

Revert "Simplify incompatible model error message"

rcourtmanc6318a848486
diff --git a/internal/ai/providers/openai.go b/internal/ai/providers/openai.go
index b16f653138..b1e79d1b45 100644
--- a/internal/ai/providers/openai.go
+++ b/internal/ai/providers/openai.go
@@ -785,8 +785,10 @@ func (c *OpenAIClient) ChatStream(ctx context.Context, req ChatRequest, callback
// but don't know how to handle them properly
accumulated := contentBuffer.String()
if containsControlTokens(accumulated) {
- return fmt.Errorf("model_incompatible: This model doesn't support function calling. " +
- "Please use a model that supports OpenAI-compatible tool use")
+ return fmt.Errorf("model_incompatible: This model appears to not support function calling. " +
+ "It's outputting internal control tokens instead of proper responses. " +
+ "Please use a model that supports OpenAI-compatible function calling " +
+ "(e.g., Llama 3.1+, Mistral, Qwen 2.5, or newer instruction-tuned models)")
}
callback(StreamEvent{