mirror of
https://github.com/ollama/ollama.git
synced 2025-07-12 20:02:49 +02:00
API app/browser access (#4879)
* API app/browser access * Add tauri (resolves #2291, #4791, #3799, #4388)
This commit is contained in:
@ -190,6 +190,12 @@ func LoadConfig() {
|
||||
)
|
||||
}
|
||||
|
||||
AllowOrigins = append(AllowOrigins,
|
||||
"app://*",
|
||||
"file://*",
|
||||
"tauri://*",
|
||||
)
|
||||
|
||||
maxRunners := clean("OLLAMA_MAX_LOADED_MODELS")
|
||||
if maxRunners != "" {
|
||||
m, err := strconv.Atoi(maxRunners)
|
||||
|
Reference in New Issue
Block a user