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
96cfb626
Commit
96cfb626
authored
Jan 16, 2024
by
Michael Yang
Browse files
fix: normalize name path before splitting
parent
598d6d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server/modelpath.go
server/modelpath.go
+1
-0
No files found.
server/modelpath.go
View file @
96cfb626
...
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
...
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
name
=
after
name
=
after
}
}
name
=
strings
.
ReplaceAll
(
name
,
string
(
os
.
PathSeparator
),
"/"
)
parts
:=
strings
.
Split
(
name
,
"/"
)
parts
:=
strings
.
Split
(
name
,
"/"
)
switch
len
(
parts
)
{
switch
len
(
parts
)
{
case
3
:
case
3
:
...
...
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