mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-22 10:40:46 +00:00
fix(proxy): mark the aggregation fold Final
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
d642ada2f7
commit
20aebe8ba1
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ def _merged(existing: ToolDiscoveryQueueItem | None, item: ToolDiscoveryQueueIte
|
|||
|
||||
def aggregate_tool_discoveries(items: Iterable[ToolDiscoveryQueueItem]) -> tuple[ToolDiscoveryQueueItem, ...]:
|
||||
"""Collapse items to one per tool_name, summing call_count, in first-seen order."""
|
||||
by_name: dict[str, ToolDiscoveryQueueItem] = {} # mutable-ok: single pass fold keyed by tool_name
|
||||
by_name: Final[dict[str, ToolDiscoveryQueueItem]] = {} # mutable-ok: single pass fold keyed by tool_name
|
||||
for item in items:
|
||||
if not (tool_name := item.get("tool_name", "")):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue