Commit 31590284 authored by Michael Yang's avatar Michael Yang
Browse files

fix route

parent f2863cc7
...@@ -147,7 +147,7 @@ func Serve(ln net.Listener) error { ...@@ -147,7 +147,7 @@ func Serve(ln net.Listener) error {
c.String(http.StatusOK, "Ollama is running") c.String(http.StatusOK, "Ollama is running")
}) })
r.POST("api/pull", pull) r.POST("/api/pull", pull)
r.POST("/api/generate", generate) r.POST("/api/generate", generate)
log.Printf("Listening on %s", ln.Addr()) log.Printf("Listening on %s", ln.Addr())
......
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