llama-stack-mirror/llama_stack/templates
Hardik Shah 6b8a8c1be9
fix: Safety in starter (#2731)
- fireworks, together do not support Llama-guard 3 8b model anymore 
- Need to default to ollama 
- current safety shields logic was not correct since the shield_id was
the provider ( which had duplicates )
- Followed similar logic to models 

Note: Seems a bit over-engineered but this can now be extended to other
providers and fits in the overall mechanism of how env_vars are used to
manage starter.

### How to test 
```
ENABLE_OLLAMA=ollama ENABLE_FIREWORKS=fireworks SAFETY_MODEL=llama-guard3:1b pytest -s -v tests/integration/ --stack-config starter -k 'not(supervised_fine_tune or builtin_tool_code or safety_with_image or code_interpreter_for or rag_and_code or truncation or register_and_unregister)' --text-model fireworks/meta-llama/Llama-3.3-70B-Instruct --vision-model fireworks/meta-llama/Llama-4-Scout-17B-16E-Instruct --safety-shield llama-guard3:1b --embedding-model all-MiniLM-L6-v2
```

### Related but not obvious in this PR 
In the llama-stack-ops repo, we run tests before publishing packages and
docker containers.
The actions in that repo were using the fireworks / together distros (
which are non-existent )

So need to update that to run with `starter` and use `ollama`
specifically for safety.
2025-07-14 15:07:40 -07:00
..
meta-reference-gpu feat: improve telemetry (#2590) 2025-07-04 17:29:09 +02:00
nvidia fix: Safety in starter (#2731) 2025-07-14 15:07:40 -07:00
open-benchmark fix: Safety in starter (#2731) 2025-07-14 15:07:40 -07:00
postgres-demo fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
starter fix: Safety in starter (#2731) 2025-07-14 15:07:40 -07:00
vllm-gpu feat: improve telemetry (#2590) 2025-07-04 17:29:09 +02:00
watsonx fix: Safety in starter (#2731) 2025-07-14 15:07:40 -07:00
__init__.py Auto-generate distro yamls + docs (#468) 2024-11-18 14:57:06 -08:00
template.py fix: Safety in starter (#2731) 2025-07-14 15:07:40 -07:00