Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ee448dea
Unverified
Commit
ee448dea
authored
Apr 22, 2024
by
Daniel Hiltgen
Committed by
GitHub
Apr 22, 2024
Browse files
Merge pull request #3835 from dhiltgen/harden_llm_override
Trim spaces and quotes from llm lib override
parents
6e8db047
aa72281e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/server.go
llm/server.go
+1
-1
No files found.
llm/server.go
View file @
ee448dea
...
@@ -180,7 +180,7 @@ func NewLlamaServer(model string, adapters, projectors []string, opts api.Option
...
@@ -180,7 +180,7 @@ func NewLlamaServer(model string, adapters, projectors []string, opts api.Option
availableServers
:=
availableServers
()
availableServers
:=
availableServers
()
servers
:=
serversForGpu
(
info
)
servers
:=
serversForGpu
(
info
)
demandLib
:=
os
.
Getenv
(
"OLLAMA_LLM_LIBRARY"
)
demandLib
:=
strings
.
Trim
(
os
.
Getenv
(
"OLLAMA_LLM_LIBRARY"
)
,
"
\"
' "
)
if
demandLib
!=
""
{
if
demandLib
!=
""
{
serverPath
:=
availableServers
[
demandLib
]
serverPath
:=
availableServers
[
demandLib
]
if
serverPath
==
""
{
if
serverPath
==
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment