llama-stack-mirror/llama_stack/cli/stack
Charlie Doern d52d40dafc feat: refactor external providers dir
currently the "default" dir for external providers is `/etc/llama-stack/providers.d`

This dir is not used anywhere nor created.

Switch to a more friendly `~/.llama/providers.d/`

This allows external providers to actually create this dir and/or populate it upon installation, `pip` cannot create directories in `etc`.

If a user does not specify a dir, default to this one

see https://github.com/containers/ramalama-stack/issues/36

`llama stack build` and `llama stack run` needed to be modified to work with this change and with external providers dir in general.

`llama stack run --image-type container --image-name foobar` should _not_ require a `--config`. This is because the config is copied in during the build and accounts for the external providers dir.

forcing a run yaml at runtime breaks external providers because the host-system path to the external providers is used in the container which is wrong

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-05-15 10:49:38 -04:00
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
_build.py feat: refactor external providers dir 2025-05-15 10:49:38 -04:00
build.py feat: add --providers to llama stack build (#1718) 2025-04-15 14:17:03 +02:00
list_apis.py API Updates (#73) 2024-09-17 19:51:35 -07:00
list_providers.py chore: more mypy fixes (#2029) 2025-05-06 09:52:31 -07:00
run.py feat: refactor external providers dir 2025-05-15 10:49:38 -04:00
stack.py fix: Incorrect import path for print_subcommand_description() (#1314) 2025-02-27 18:35:49 -08:00
utils.py fix: Use CONDA_DEFAULT_ENV presence as a flag to use conda mode (#1555) 2025-03-27 17:13:22 -04:00