mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
fix: handle missing API keys gracefully in model refresh
- Log as warning instead of exception to avoid a scary startup Closes: #3492 Signed-off-by: Derek Higgins <derekh@redhat.com>
This commit is contained in:
parent
4c2fcb6b51
commit
921b76836f
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ModelsRoutingTable(CommonRoutingTableImpl, Models):
|
||||||
try:
|
try:
|
||||||
models = await provider.list_models()
|
models = await provider.list_models()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(f"Model refresh failed for provider {provider_id}: {e}")
|
logger.warning(f"Model refresh failed for provider {provider_id}: {e}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
self.listed_providers.add(provider_id)
|
self.listed_providers.add(provider_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue