fix route

This commit is contained in:
Michael Yang 2023-07-12 17:19:03 -07:00
parent f2863cc7f8
commit 31590284a7

View file

@ -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())