Unverified Commit 43eaba3d authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #787 from jmorganca/mxyng/server-version2

server: print version on start
parents a0c3e989 1af493c5
...@@ -26,6 +26,7 @@ import ( ...@@ -26,6 +26,7 @@ import (
"github.com/jmorganca/ollama/api" "github.com/jmorganca/ollama/api"
"github.com/jmorganca/ollama/llm" "github.com/jmorganca/ollama/llm"
"github.com/jmorganca/ollama/version"
) )
var mode string = gin.DebugMode var mode string = gin.DebugMode
...@@ -588,7 +589,7 @@ func Serve(ln net.Listener, allowOrigins []string) error { ...@@ -588,7 +589,7 @@ func Serve(ln net.Listener, allowOrigins []string) error {
r.Handle(method, "/api/tags", ListModelsHandler) 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{ s := &http.Server{
Handler: r, Handler: r,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment