Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix potentially inaccurate error message

Bruce MacDonald43a726149df8
diff --git a/llm/llama.go b/llm/llama.go
index a7561f8dd..35a2c5567 100644
--- a/llm/llama.go
+++ b/llm/llama.go
@@ -226,7 +226,7 @@ type llama struct {
}
var (
- errNvidiaSMI = errors.New("nvidia-smi command failed")
+ errNvidiaSMI = errors.New("warning: gpu support may not be enabled, check you have installed GPU drivers: nvidia-smi command failed")
errAvailableVRAM = errors.New("not enough VRAM available, falling back to CPU only")
)
diff --git a/server/routes.go b/server/routes.go
index cc53dc603..8a5a5a24a 100644
--- a/server/routes.go
+++ b/server/routes.go
@@ -794,7 +794,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
if runtime.GOOS == "linux" {
// check compatibility to log warnings
if _, err := llm.CheckVRAM(); err != nil {
- log.Printf("Warning: GPU support may not be enabled, check you have installed GPU drivers: %v", err)
+ log.Printf(err.Error())
}
}