mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
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:
parent
0ebbec4d0e
commit
3b7236d618
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue