[BugFix] Fix Duplicate Assignment in Hermes2ProToolParser (#8423)

This commit is contained in:
Luis Vega 2024-09-12 11:10:11 -07:00 committed by GitHub
parent 8a23e93302
commit 1f0c75afa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,6 @@ class Hermes2ProToolParser(ToolParser):
self.current_tool_name_sent: bool = False
self.prev_tool_call_arr: List[Dict] = []
self.current_tool_id: int = -1
self.current_tool_name_sent = False
self.streamed_args_for_tool: List[str] = [
] # map what has been streamed for each tool so far to a list