mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Merge pull request #3835 from dhiltgen/harden_llm_override
Trim spaces and quotes from llm lib override
This commit is contained in:
commit
ee448deaba
1 changed files with 1 additions and 1 deletions
|
@ -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 == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue