mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: resolve mypy type error in _is_potential_model_name_in_model_cost
Add explicit str() conversion when calling _get_model_cost_key to satisfy mypy type checking. TypedDict.values() returns object type, not str.
This commit is contained in:
parent
e08b4767e9
commit
1aa6384249
1 changed files with 1 additions and 1 deletions
|
|
@ -4867,7 +4867,7 @@ def _is_potential_model_name_in_model_cost(
|
|||
Check if the potential model name is in the model cost (case-insensitive).
|
||||
"""
|
||||
return any(
|
||||
_get_model_cost_key(potential_model_name) is not None
|
||||
_get_model_cost_key(str(potential_model_name)) is not None
|
||||
for potential_model_name in potential_model_names.values()
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue