From aa72281eae53b2111bbe5178a2f210852a7ebea8 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 22 Apr 2024 17:11:14 -0700 Subject: [PATCH] Trim spaces and quotes from llm lib override --- llm/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/server.go b/llm/server.go index 3cab6f1d..fcae39f3 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 == "" {