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
aa72281e
"vscode:/vscode.git/clone" did not exist on "53798e21055d5418c28e6459b174fbcc59947353"
Commit
aa72281e
authored
Apr 22, 2024
by
Daniel Hiltgen
Browse files
Trim spaces and quotes from llm lib override
parent
62be2050
Changes
1
Hide 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 @
aa72281e
...
...
@@ -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
==
""
{
...
...
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