llama-stack-mirror/tests/external-provider/llama-stack-provider-ollama
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
..
custom-distro.yaml feat: refactor external providers dir 2025-05-15 10:49:38 -04:00
custom_ollama.yaml feat: allow building distro with external providers (#1967) 2025-04-18 17:18:28 +02:00
pyproject.toml feat: ability to execute external providers (#1672) 2025-04-09 10:30:41 +02:00
README.md feat: ability to execute external providers (#1672) 2025-04-09 10:30:41 +02:00
run.yaml feat: refactor external providers dir 2025-05-15 10:49:38 -04:00

Ollama external provider for Llama Stack

Template code to create a new external provider for Llama Stack.