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
f65169b1
Commit
f65169b1
authored
Aug 10, 2023
by
Jeffrey Morgan
Browse files
clean up cli flags
parent
040a5b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cmd/cmd.go
cmd/cmd.go
+3
-3
No files found.
cmd/cmd.go
View file @
f65169b1
...
...
@@ -648,9 +648,9 @@ func NewCLI() *cobra.Command {
RunE
:
RunServer
,
}
serveCmd
.
Flags
()
.
String
(
"port"
,
"11434"
,
"Port to listen on
, may also use OLLAMA_PORT environment variable
"
)
serveCmd
.
Flags
()
.
String
(
"host"
,
"127.0.0.1"
,
"Host listen
address, may also use OLLAMA_HOST environment variable
"
)
serveCmd
.
Flags
()
.
StringSlice
(
"origins"
,
nil
,
"Additional allowed CORS origins as comma-separated list"
)
serveCmd
.
Flags
()
.
String
(
"port"
,
"11434"
,
"Port to listen on"
)
serveCmd
.
Flags
()
.
String
(
"host"
,
"127.0.0.1"
,
"Host
to
listen
on
"
)
serveCmd
.
Flags
()
.
StringSlice
(
"origins"
,
nil
,
"Additional allowed CORS origins as comma-separated list
(e.g. http://192.168.1.24:3000)
"
)
pullCmd
:=
&
cobra
.
Command
{
Use
:
"pull 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