mirror of
https://github.com/ollama/ollama.git
synced 2025-08-03 05:13:09 +02:00
Add unit test of API routes (#1528)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user