Skip to content

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

Trim spaces and quotes from llm lib override

Daniel Hiltgenaa72281eae53
diff --git a/llm/server.go b/llm/server.go
index 3cab6f1d2..fcae39f36 100644
--- a/llm/server.go
+++ b/llm/server.go
@@ -180,7 +180,7 @@ func NewLlamaServer(model string, adapters, projectors []string, opts api.Option
availableServers := availableServers()
servers := serversForGpu(info)
- demandLib := os.Getenv("OLLAMA_LLM_LIBRARY")
+ demandLib := strings.Trim(os.Getenv("OLLAMA_LLM_LIBRARY"), "\"' ")
if demandLib != "" {
serverPath := availableServers[demandLib]
if serverPath == "" {