forked from phoenix-oss/llama-stack-mirror
Fixes
This commit is contained in:
parent
3aedde2ab4
commit
47c37fd831
3 changed files with 38 additions and 10 deletions
|
@ -41,7 +41,7 @@ while [[ $# -gt 0 ]]; do
|
|||
|
||||
if [[ -n "$2" ]]; then
|
||||
# collect environment variables so we can set them after activating the conda env
|
||||
env_vars="$env_vars $2"
|
||||
env_vars="$env_vars --env $2"
|
||||
shift 2
|
||||
else
|
||||
echo -e "${RED}Error: --env requires a KEY=VALUE argument${NC}" >&2
|
||||
|
@ -58,8 +58,8 @@ eval "$(conda shell.bash hook)"
|
|||
conda deactivate && conda activate "$env_name"
|
||||
|
||||
set -x
|
||||
$env_vars \
|
||||
$CONDA_PREFIX/bin/python \
|
||||
$CONDA_PREFIX/bin/python \
|
||||
-m llama_stack.distribution.server.server \
|
||||
--yaml_config "$yaml_config" \
|
||||
--port "$port" "$@"
|
||||
--port "$port" \
|
||||
"$env_vars"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue