Update litellm/llms/chatgpt/chat/streaming_utils.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Cesar Garcia 2026-02-19 16:24:19 -03:00 committed by GitHub
parent 0ebbec4d0e
commit 3b7236d618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,9 +22,9 @@ class ChatGPTToolCallNormalizer:
def __init__(self, stream: Any):
self._stream = stream
self._seen_ids: dict[str, int] = {} # tool_call_id -> assigned_index
self._seen_ids: Dict[str, int] = {} # tool_call_id -> assigned_index
self._next_index: int = 0
self._last_id: str | None = None # tracks which tool call the next delta belongs to
self._last_id: Optional[str] = None # tracks which tool call the next delta belongs to
def __getattr__(self, name: str) -> Any:
return getattr(self._stream, name)