Skip to content

Commit

Permalink
Expose LLAMASTACK_PORT in cli.stack.run (#722)
Browse files Browse the repository at this point in the history
This was missed in #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>
  • Loading branch information
terrytangyuan authored Jan 10, 2025
1 parent 027a46d commit 24fa1ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama_stack/cli/stack/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# the root directory of this source tree.

import argparse
import os
from pathlib import Path

from llama_stack.cli.subcommand import Subcommand
Expand Down Expand Up @@ -34,7 +35,7 @@ def _add_arguments(self):
"--port",
type=int,
help="Port to run the server on. Defaults to 5000",
default=5000,
default=int(os.getenv("LLAMASTACK_PORT", 5000)),
)
self.parser.add_argument(
"--disable-ipv6",
Expand Down

0 comments on commit 24fa1ad

Please sign in to comment.