Trim spaces and quotes from llm lib override

This commit is contained in:
Daniel Hiltgen 2024-04-22 17:11:14 -07:00
parent 62be2050dd
commit aa72281eae

View file

@ -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 == "" {