This commit is contained in:
Slipstream 2025-04-29 17:18:27 -06:00
parent 677ed86892
commit d5fd3ced13
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -814,8 +814,8 @@ async def get_ai_response(cog: 'GurtCog', message: discord.Message, model_name:
# Tool config for the loop (allow any tool call)
tool_config_any = types.ToolConfig(
function_calling_config=types.ToolConfig.FunctionCallingConfig(
mode=types.ToolConfig.FunctionCallingConfig.Mode.ANY # Use ANY to allow model to call tools
function_calling_config=types.FunctionCallingConfig(
mode=types.FunctionCallingConfigMode.ANY # Use ANY to allow model to call tools
)
) if vertex_tool else None