We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bcfbb commit 2e21f1dCopy full SHA for 2e21f1d
litellm/router.py
@@ -5475,6 +5475,11 @@ def get_router_model_info(
5475
pass
5476
5477
## GET LITELLM MODEL INFO - raises exception, if model is not mapped
5478
+ if model is None:
5479
+ # Handle case where base_model is None (e.g., Azure models without base_model set)
5480
+ # Use the original model from litellm_params
5481
+ model = _model
5482
+
5483
if not model.startswith("{}/".format(custom_llm_provider)):
5484
model_info_name = "{}/{}".format(custom_llm_provider, model)
5485
else:
0 commit comments