From 672ffe9b7dc07670d0f8ddd4d77edf0d3f7a788b Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Wed, 13 Mar 2024 14:35:33 -0700 Subject: [PATCH] add `OLLAMA_KEEP_ALIVE` to environment variable docs for `ollama serve` (#3127) --- cmd/cmd.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index b9afb2e2..1da354c5 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -970,9 +970,10 @@ func NewCLI() *cobra.Command { serveCmd.SetUsageTemplate(serveCmd.UsageTemplate() + ` Environment Variables: - OLLAMA_HOST The host:port to bind to (default "127.0.0.1:11434") - OLLAMA_ORIGINS A comma separated list of allowed origins. - OLLAMA_MODELS The path to the models directory (default is "~/.ollama/models") + OLLAMA_HOST The host:port to bind to (default "127.0.0.1:11434") + OLLAMA_ORIGINS A comma separated list of allowed origins. + OLLAMA_MODELS The path to the models directory (default is "~/.ollama/models") + OLLAMA_KEEP_ALIVE The duration that models stay loaded in memory (default is "5m") `) pullCmd := &cobra.Command{