diff --git a/llama_stack/cli/stack/run.py b/llama_stack/cli/stack/run.py index 62a45ada0..5a8a14b0a 100644 --- a/llama_stack/cli/stack/run.py +++ b/llama_stack/cli/stack/run.py @@ -6,6 +6,7 @@ import argparse import os +import sys from pathlib import Path from llama_stack.cli.subcommand import Subcommand @@ -70,7 +71,7 @@ class StackRun(Subcommand): BUILDS_BASE_DIR, DISTRIBS_BASE_DIR, ) - from llama_stack.distribution.utils.exec import run_with_pty + from llama_stack.distribution.utils.exec import run_with_pty, run_with_win if not args.config: self.parser.error("Must specify a config file to run") @@ -198,4 +199,4 @@ class StackRun(Subcommand): return run_args.extend(["--env", f"{key}={value}"]) - run_with_pty(run_args) + run_with_win(args) if sys.platform.startswith("win") else run_with_pty(args)