This commit is contained in:
Nathan Weinberg 2025-12-02 17:03:41 -08:00 committed by GitHub
commit b9948ca03a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,6 +135,14 @@ class ModelsRoutingTable(CommonRoutingTableImpl, 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 = [
OpenAIModel(
id=model.identifier,