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
a1ecdd36
Commit
a1ecdd36
authored
Sep 05, 2023
by
Michael Yang
Browse files
create manifests directory
parent
d18282bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
server/modelpath.go
server/modelpath.go
+6
-1
No files found.
server/modelpath.go
View file @
a1ecdd36
...
@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
...
@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
return
""
,
err
return
""
,
err
}
}
return
filepath
.
Join
(
home
,
".ollama"
,
"models"
,
"manifests"
),
nil
path
:=
filepath
.
Join
(
home
,
".ollama"
,
"models"
,
"manifests"
)
if
err
:=
os
.
MkdirAll
(
filepath
.
Dir
(
path
),
0
o755
);
err
!=
nil
{
return
""
,
err
}
return
path
,
nil
}
}
func
GetBlobsPath
(
digest
string
)
(
string
,
error
)
{
func
GetBlobsPath
(
digest
string
)
(
string
,
error
)
{
...
...
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