mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
Use correct key name
This commit is contained in:
parent
608a5775a3
commit
fa9298d588
1 changed files with 2 additions and 2 deletions
|
@ -5151,8 +5151,8 @@ def stream_chunk_builder(
|
|||
function_call_chunks = [
|
||||
chunk
|
||||
for chunk in chunks
|
||||
if "function_calls" in chunk["choices"][0]["delta"]
|
||||
and chunk["choices"][0]["delta"]["function_calls"] is not None
|
||||
if "function_call" in chunk["choices"][0]["delta"]
|
||||
and chunk["choices"][0]["delta"]["function_call"] is not None
|
||||
]
|
||||
|
||||
if len(function_call_chunks) > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue