mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
Merge d8e8bb140b into 4237eb4aaa
This commit is contained in:
commit
b9948ca03a
1 changed files with 8 additions and 0 deletions
|
|
@ -135,6 +135,14 @@ class ModelsRoutingTable(CommonRoutingTableImpl, Models):
|
||||||
|
|
||||||
all_models = registry_models + unique_dynamic_models
|
all_models = registry_models + unique_dynamic_models
|
||||||
|
|
||||||
|
# Log error if no models are found, log debug statement if either registry or dynamic is empty
|
||||||
|
if len(all_models) == 0:
|
||||||
|
logger.error("No models found from registry or providers data")
|
||||||
|
elif len(registry_models) == 0:
|
||||||
|
logger.debug("No models found in registry")
|
||||||
|
elif len(dynamic_models) == 0:
|
||||||
|
logger.debug("No models found via providers data")
|
||||||
|
|
||||||
openai_models = [
|
openai_models = [
|
||||||
OpenAIModel(
|
OpenAIModel(
|
||||||
id=model.identifier,
|
id=model.identifier,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue