fix(main.py): fix linting errors

This commit is contained in:
Krrish Dholakia 2023-11-27 19:11:38 -08:00
parent 5450fb26f4
commit 91e8ff439d
2 changed files with 3 additions and 2 deletions

View file

@ -2108,6 +2108,7 @@ def stream_chunk_builder(chunks: list, messages: Optional[list]=None):
# Extract the "content" strings from the nested dictionaries within "choices"
content_list = []
combined_content = ""
combined_arguments = ""
if "tool_calls" in chunks[0]["choices"][0]["delta"] and chunks[0]["choices"][0]["delta"]["tool_calls"] is not None:
argument_list = []