mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
Expose LLAMASTACK_PORT in cli.stack.run (#722)
This was missed in https://github.com/meta-llama/llama-stack/pull/706. I tested `llama_stack.distribution.server.server` but didn't test `llama stack run`. cc @ashwinb Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
parent
027a46ddd7
commit
24fa1adc2f
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from llama_stack.cli.subcommand import Subcommand
|
from llama_stack.cli.subcommand import Subcommand
|
||||||
|
@ -34,7 +35,7 @@ class StackRun(Subcommand):
|
||||||
"--port",
|
"--port",
|
||||||
type=int,
|
type=int,
|
||||||
help="Port to run the server on. Defaults to 5000",
|
help="Port to run the server on. Defaults to 5000",
|
||||||
default=5000,
|
default=int(os.getenv("LLAMASTACK_PORT", 5000)),
|
||||||
)
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
"--disable-ipv6",
|
"--disable-ipv6",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue