Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Dec 13, 2024
1 parent 3908b93 commit ef0cda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ax/ai/google-gemini/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit ef0cda2

Please sign in to comment.