fix: ensure function call name and args are not None before processing

This commit is contained in:
Soulter
2025-09-04 11:18:58 +08:00
parent 388ae49e55
commit fa53b468fd
@@ -369,8 +369,8 @@ class ProviderGoogleGenAI(Provider):
chain.append(Comp.Plain(part.text))
elif (
part.function_call
and part.function_call.name
and part.function_call.args
and part.function_call.name is not None
and part.function_call.args is not None
):
llm_response.role = "tool"
llm_response.tools_call_name.append(part.function_call.name)