llama-stack-mirror/llama_stack
Omar Abdelwahab 702fcd1abf
fix: Raising an error message to the user when registering an existing provider. (#3624)
When the user wants to change the attributes (which could include model
name, dimensions,...etc) of an already registered provider, they will
get an error message asking that they first unregister the provider
before registering a new one.

# What does this PR do?
This PR updated the register function to raise an error to the user when
they attempt to register a provider that was already registered asking
them to un-register the existing provider first.

<!-- If resolving an issue, uncomment and update the line below -->
#2313

## Test Plan
Tested the change with /tests/unit/registry/test_registry.py

---------

Co-authored-by: Omar Abdelwahab <omara@fb.com>
2025-10-08 12:09:23 +02:00
..
apis docs: API docstrings cleanup for better documentation rendering (#3661) 2025-10-06 10:46:33 -07:00
cli chore!: remove --env from llama stack run (#3711) 2025-10-07 20:58:15 -07:00
core fix: Raising an error message to the user when registering an existing provider. (#3624) 2025-10-08 12:09:23 +02:00
distributions chore!: remove --env from llama stack run (#3711) 2025-10-07 20:58:15 -07:00
models chore: remove dead code (#3729) 2025-10-07 20:26:02 -07:00
providers chore: remove dead code (#3729) 2025-10-07 20:26:02 -07:00
strong_typing feat: Add OpenAI Conversations API (#3429) 2025-10-03 08:47:18 -07:00
testing feat(tests): implement test isolation for inference recordings (#3681) 2025-10-04 11:34:18 -07:00
ui chore(ui-deps): bump react-dom and @types/react-dom in /llama_stack/ui (#3693) 2025-10-06 00:02:31 -04:00
__init__.py chore(rename): move llama_stack.distribution to llama_stack.core (#2975) 2025-07-30 23:30:53 -07:00
env.py refactor(test): move tools, evals, datasetio, scoring and post training tests (#1401) 2025-03-04 14:53:47 -08:00
log.py chore: require valid logging category (#3712) 2025-10-08 11:10:33 +02:00
schema_utils.py feat(api): add extra_body parameter support with shields example (#3670) 2025-10-03 13:25:09 -07:00