llama-stack-mirror/llama_stack/distribution/utils
ehhuang 0d7a90b8bc
chore: merge --config and --template in server.py (#2716)
# What does this PR do?
Part of #2696 

## Test Plan
Run `llama stack run starter`

Error:
```

myenv ❯ llama stack run starters
WARNING  2025-07-10 12:12:43,052 llama_stack.cli.stack.run:82 server: Conda detected. Using conda environment myenv for the run.
usage: llama stack run [-h] [--port PORT] [--image-name IMAGE_NAME] [--env KEY=VALUE]
                       [--image-type {conda,venv}] [--enable-ui]
                       [config | template]
llama stack run: error: Could not resolve config or template 'starters'.

Tried the following locations:
  1. As file path: /Users/erichuang/projects/llama-stack-git/starters
  2. As template: /Users/erichuang/projects/llama-stack-git/llama_stack/templates/starters/run.yaml
  3. As built distribution: (/Users/erichuang/.llama/distributions/llamastack-starters/starters-run.yaml, /Users/erichuang/.llama/distributions/starters/starters-run.yaml)

Available templates: dell, test-env, vllm-gpu, test-template, cerebras, openai-api-verification, sambanova, passthrough, direct-config, together, openai, fireworks, meta-reference-gpu, __pycache__, dev, ollama, watsonx, remote-vllm, llama_api, groq, dummy, oracle, nvidia, ci-tests, postgres-demo, test-stack, bedrock, starter, hf-serverless, hf-endpoint, tgi, open-benchmark, verification

Did you mean one of these templates?
  - starter
  - together
  - postgres-demo
```
2025-07-21 13:19:27 -07:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
config.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
config_dirs.py feat: refactor external providers dir (#2049) 2025-05-15 20:17:03 +02:00
config_resolution.py chore: merge --config and --template in server.py (#2716) 2025-07-21 13:19:27 -07:00
context.py chore: update pre-commit hook versions (#2708) 2025-07-10 16:47:59 +02:00
dynamic.py Add an introspection "Api.inspect" API 2024-10-02 15:41:14 -07:00
exec.py chore: merge --config and --template in server.py (#2716) 2025-07-21 13:19:27 -07:00
image_types.py refactor: ImageType to LlamaStackImageType (#1500) 2025-03-10 17:12:53 -04:00
model_utils.py Ensure model_local_dir does not mangle "C:\" on Windows 2024-11-24 14:18:59 -08:00
prompt_for_config.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
serialize.py API Updates (#73) 2024-09-17 19:51:35 -07:00