mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
chore: satisfy fusion type discipline gate
This commit is contained in:
parent
ef3ee26031
commit
661e2d15c8
1 changed files with 5 additions and 2 deletions
|
|
@ -1187,10 +1187,13 @@ def _estimate_fusion_search_cost(
|
|||
if not matching_tools:
|
||||
return None
|
||||
|
||||
estimates: list[float] = []
|
||||
estimates: Final[list[float]] = [] # mutable-ok: accumulator spans configured search tools
|
||||
try:
|
||||
for tool in matching_tools:
|
||||
optional_params = tool.get("litellm_params", {})
|
||||
optional_params = tool.get(
|
||||
"litellm_params",
|
||||
{}, # mutable-ok: read-only empty provider-params fallback
|
||||
)
|
||||
search_provider = optional_params.get("search_provider")
|
||||
if not search_provider:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue