Skip to content

[Bug]: Forced Function Calling setting isn't different to the default AUTO setting #674

@JasperW01

Description

@JasperW01

File Name

gemini/function-calling/forced_function_calling.ipynb

What happened?

When running through the notebook, it's found that regardless we set the ToolConfig.FunctionCallingConfig.Mode to AUTO or ANY, the response from Gemini 1.5 Pro always responds back with two parts, one of text and the other of "function_call" as below:

image

This is not aligned with the forced function call which is supposed to respond back with only one parts of function_call.

In addition, as a side effect, in the step of getting params in the section of "Example: Using Forced Function Calling mode (ANY)" , we have to correct parts[0] to part[1] to make the notebook code cell work as shown below:

image

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions