mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
style(cost_calculator): avoid bare except pass in rerank_cost
This commit is contained in:
parent
f5c4561ab3
commit
5d7dcc2f08
1 changed files with 2 additions and 2 deletions
|
|
@ -2723,8 +2723,8 @@ def rerank_cost(
|
|||
try:
|
||||
builtin_info = litellm.get_model_info(model=model, custom_llm_provider=custom_llm_provider)
|
||||
model_info = {**(model_info or {}), **builtin_info} if model_info else builtin_info
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
verbose_logger.debug("Failed to get model info in rerank_cost: %s", e)
|
||||
|
||||
return config.calculate_rerank_cost(
|
||||
model=model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue