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
3a247717
Unverified
Commit
3a247717
authored
Oct 18, 2023
by
Michael Yang
Committed by
GitHub
Oct 18, 2023
Browse files
Merge pull request #822 from ggozad/fix-tags-api
Fix /api/tags for no models.
parents
08b0e04f
8c6c2cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/routes.go
server/routes.go
+1
-1
No files found.
server/routes.go
View file @
3a247717
...
...
@@ -481,7 +481,7 @@ func GetModelInfo(name string) (*api.ShowResponse, error) {
}
func
ListModelsHandler
(
c
*
gin
.
Context
)
{
var
models
[]
api
.
ModelResponse
models
:=
make
(
[]
api
.
ModelResponse
,
0
)
fp
,
err
:=
GetManifestPath
()
if
err
!=
nil
{
c
.
JSON
(
http
.
StatusInternalServerError
,
gin
.
H
{
"error"
:
err
.
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