Patch Changes
-
#10195
05f46ffThanks @hntrl! - fix(google): don't send empty toolConfig when no tool_choice is specifiedWhen
bindTools()was called without specifyingtool_choice, an empty
toolConfig: { functionCallingConfig: {} }was included in the API request.
This caused the Gemini API to return tool invocations as text (Python code
blocks) instead of structuredfunctionCallparts. Now returnsundefined
when notool_choiceis set, omittingtoolConfigfrom the request entirely
and letting the API default to AUTO mode.