Add unit test of API routes (#1528)

This commit is contained in:
Patrick Devine
2023-12-14 16:47:40 -08:00
committed by GitHub
parent 6e16098a60
commit 630518f0d9
4 changed files with 122 additions and 30 deletions

View File

@@ -1035,12 +1035,7 @@ func RunServer(cmd *cobra.Command, _ []string) error {
return err
}
var origins []string
if o := os.Getenv("OLLAMA_ORIGINS"); o != "" {
origins = strings.Split(o, ",")
}
return server.Serve(ln, origins)
return server.Serve(ln)
}
func getImageData(filePath string) ([]byte, error) {