llama-stack-mirror/llama_stack/distribution
Charlie Doern 436f8ade9e feat: implement provider updating
add `v1/providers/` which uses PUT to allow users to change their provider configuration

this is a follow up to #1429 and related to #1359

a user can call something like:

`llama_stack_client.providers.update(api="inference", provider_id="ollama", provider_type="remote::ollama", config={'url': 'http:/localhost:12345'})`

or

`llama-stack-client providers update inference ollama remote::ollama "{'url': 'http://localhost:12345'}"`

this API works by adding a `RequestMiddleware` to the server which checks requests, and if the user is using PUT /v1/providers, the routes are re-registered with the re-initialized provider configurations/methods

for the client, `self.impls` is updated to hold the proper methods+configurations

this depends on a client PR, the CI will fail until then but succeeded locally

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-07-01 10:04:10 -04:00
..
access_control fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
routers chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
routing_tables fix: dataset metadata without provider_id (#2527) 2025-06-27 08:51:29 -04:00
server feat: implement provider updating 2025-07-01 10:04:10 -04:00
store fix(tools): do not index tools, only index toolgroups (#2261) 2025-05-25 13:27:52 -07:00
ui chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
utils refactor: remove container from list of run image types (#2178) 2025-06-02 09:57:55 +02:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
build.py chore: bump python supported version to 3.12 (#2475) 2025-06-24 09:22:04 +05:30
build_conda_env.sh chore: fix build script bug (#2507) 2025-06-24 12:05:22 -07:00
build_container.sh build: update temp. created Containerfile (#2492) 2025-06-27 10:23:12 +02:00
build_venv.sh chore: remove straggler references to llama-models (#1345) 2025-03-01 14:26:03 -08:00
client.py chore: make cprint write to stderr (#2250) 2025-05-24 23:39:57 -07:00
common.sh feat(pre-commit): enhance pre-commit hooks with additional checks (#2014) 2025-04-30 11:35:49 -07:00
configure.py feat: refactor external providers dir (#2049) 2025-05-15 20:17:03 +02:00
datatypes.py fix: Some missed env variable changes from PR 2490 (#2538) 2025-06-26 17:59:15 -07:00
distribution.py ci: fix external provider test (#2438) 2025-06-12 16:14:32 +02:00
inspect.py chore: use starlette built-in Route class (#2267) 2025-05-28 09:53:33 -07:00
library_client.py feat: implement provider updating 2025-07-01 10:04:10 -04:00
providers.py feat: implement provider updating 2025-07-01 10:04:10 -04:00
request_headers.py feat: fine grained access control policy (#2264) 2025-06-03 14:51:12 -07:00
resolver.py fix: Some missed env variable changes from PR 2490 (#2538) 2025-06-26 17:59:15 -07:00
stack.py fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
start_stack.sh refactor: remove container from list of run image types (#2178) 2025-06-02 09:57:55 +02:00