Open numan opened 2 months ago
I've narrowed down the issue to this part:
# Define a tool config for the above functions
retail_tool_config = ToolConfig(
function_calling_config=ToolConfig.FunctionCallingConfig(
# ANY mode forces the model to predict a function call
mode=ToolConfig.FunctionCallingConfig.Mode.ANY,
# List of functions that can be returned when the mode is ANY.
# If the list is empty, any declared function can be returned.
allowed_function_names=["get_product_sku"],
)
)
excluding the tool_config
from the request seems to work, but it is not a good workaround for my particular use case.
I'm having trouble running the function-calling example located here: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/function-calling#python_2
Environment details
google-cloud-aiplatform
version:Steps to reproduce
Code example
Stack trace