Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
0ded7fdc
Unverified
Commit
0ded7fdc
authored
Mar 06, 2024
by
Blake Mizerany
Committed by
GitHub
Mar 06, 2024
Browse files
cmd: document environment variables for serve command
Updates #2944
parent
2103a507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
cmd/cmd.go
cmd/cmd.go
+18
-1
No files found.
cmd/cmd.go
View file @
0ded7fdc
...
...
@@ -879,6 +879,24 @@ func NewCLI() *cobra.Command {
Args
:
cobra
.
ExactArgs
(
0
),
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
{
Use
:
"pull MODEL"
,
...
...
@@ -907,7 +925,6 @@ func NewCLI() *cobra.Command {
PreRunE
:
checkServerHeartbeat
,
RunE
:
ListHandler
,
}
copyCmd
:=
&
cobra
.
Command
{
Use
:
"cp SOURCE TARGET"
,
Short
:
"Copy a model"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment