From ef0cda2c6fcdf4b7d11af7f33d9f71a9d2d91ef8 Mon Sep 17 00:00:00 2001 From: dosco <832235+dosco@users.noreply.github.com> Date: Fri, 13 Dec 2024 01:58:08 -0800 Subject: [PATCH] fix: minor --- src/ax/ai/google-gemini/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ax/ai/google-gemini/api.ts b/src/ax/ai/google-gemini/api.ts index 8d46cd8..8fd01bc 100644 --- a/src/ax/ai/google-gemini/api.ts +++ b/src/ax/ai/google-gemini/api.ts @@ -315,7 +315,7 @@ export class AxAIGoogleGemini extends AxBaseAI< functionCallingConfig: { mode: 'ANY' as const } }; } else { - const allowedFunctionNames = req.functionCall.function.name + const allowedFunctionNames = req.functionCall.function?.name ? { allowedFunctionNames: [req.functionCall.function.name] }