llama-stack-mirror/llama_stack/distribution/utils
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
config.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
config_dirs.py feat: refactor external providers dir 2025-05-15 10:49:38 -04:00
context.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
dynamic.py Add an introspection "Api.inspect" API 2024-10-02 15:41:14 -07:00
exec.py feat: refactor external providers dir 2025-05-15 10:49:38 -04: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