parent
2103a5073c
commit
0ded7fdc4b
1 changed files with 18 additions and 1 deletions
19
cmd/cmd.go
19
cmd/cmd.go
|
@ -879,6 +879,24 @@ func NewCLI() *cobra.Command {
|
||||||
Args: cobra.ExactArgs(0),
|
Args: cobra.ExactArgs(0),
|
||||||
RunE: RunServer,
|
RunE: RunServer,
|
||||||
}
|
}
|
||||||
|
serveCmd.SetUsageTemplate(serveCmd.UsageTemplate() + `
|
||||||
|
Environment Variables:
|
||||||
|
|
||||||
|
OLLAMA_HOST
|
||||||
|
The host:port to bind to (default "127.0.0.1:11434")
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
"127.0.0.1:11434"
|
||||||
|
OLLAMA_ORIGINS
|
||||||
|
A comma separated list of allowed origins. If unset, the
|
||||||
|
default behavior is to allow same origin requests, only.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
"localhost:11434"
|
||||||
|
"example.com,api.example.com"
|
||||||
|
OLLAMA_MODELS
|
||||||
|
The path to the models directory (default is "~/.ollama/models")
|
||||||
|
`)
|
||||||
|
|
||||||
pullCmd := &cobra.Command{
|
pullCmd := &cobra.Command{
|
||||||
Use: "pull MODEL",
|
Use: "pull MODEL",
|
||||||
|
@ -907,7 +925,6 @@ func NewCLI() *cobra.Command {
|
||||||
PreRunE: checkServerHeartbeat,
|
PreRunE: checkServerHeartbeat,
|
||||||
RunE: ListHandler,
|
RunE: ListHandler,
|
||||||
}
|
}
|
||||||
|
|
||||||
copyCmd := &cobra.Command{
|
copyCmd := &cobra.Command{
|
||||||
Use: "cp SOURCE TARGET",
|
Use: "cp SOURCE TARGET",
|
||||||
Short: "Copy a model",
|
Short: "Copy a model",
|
||||||
|
|
Loading…
Reference in a new issue