mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 06:23:46 +00:00
Use correct key name
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user