Skip to content

Commit

Permalink
fix: server url for client in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
ivynya committed Dec 25, 2023
1 parent 58861fb commit ed3e145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
switch req.Action {
case "generate":
log.Println("generate")
llm, err := ollama.New(ollama.WithModel(req.Generate.Model))
llm, err := ollama.New(ollama.WithModel(req.Generate.Model), ollama.WithServerURL("http://host.docker.internal:11434"))
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit ed3e145

Please sign in to comment.