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
43eaba3d
Unverified
Commit
43eaba3d
authored
Oct 16, 2023
by
Michael Yang
Committed by
GitHub
Oct 16, 2023
Browse files
Merge pull request #787 from jmorganca/mxyng/server-version2
server: print version on start
parents
a0c3e989
1af493c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
server/routes.go
server/routes.go
+2
-1
No files found.
server/routes.go
View file @
43eaba3d
...
...
@@ -26,6 +26,7 @@ import (
"github.com/jmorganca/ollama/api"
"github.com/jmorganca/ollama/llm"
"github.com/jmorganca/ollama/version"
)
var
mode
string
=
gin
.
DebugMode
...
...
@@ -588,7 +589,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
r
.
Handle
(
method
,
"/api/tags"
,
ListModelsHandler
)
}
log
.
Printf
(
"Listening on %s
"
,
ln
.
Addr
()
)
log
.
Printf
(
"Listening on %s
(version %s)"
,
ln
.
Addr
(),
version
.
Version
)
s
:=
&
http
.
Server
{
Handler
:
r
,
}
...
...
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