mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 20:25:29 +00:00
fix(vertex_ai.py): fix faulty async completion function call tool check
This commit is contained in:
@@ -876,8 +876,8 @@ async def async_completion(
|
||||
tools=tools,
|
||||
)
|
||||
|
||||
if tools is not None and hasattr(
|
||||
response.candidates[0].content.parts[0], "function_call"
|
||||
if tools is not None and bool(
|
||||
getattr(response.candidates[0].content.parts[0], "function_call", None)
|
||||
):
|
||||
function_call = response.candidates[0].content.parts[0].function_call
|
||||
args_dict = {}
|
||||
|
||||
Reference in New Issue
Block a user