mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Fix mypy errors
This commit is contained in:
parent
067dab42e6
commit
b9564834e6
1 changed files with 3 additions and 1 deletions
|
|
@ -897,7 +897,9 @@ class ModelResponseIterator:
|
|||
args = ""
|
||||
for block in self.content_blocks:
|
||||
if block["delta"]["type"] == "input_json_delta":
|
||||
args += block["delta"].get("partial_json", "")
|
||||
partial_json = block["delta"].get("partial_json")
|
||||
if isinstance(partial_json, str):
|
||||
args += partial_json
|
||||
if args:
|
||||
try:
|
||||
self._server_tool_inputs[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue