This commit is contained in:
Slipstream 2025-05-01 10:07:30 -06:00
parent ee12360541
commit 5d2656591a
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -1030,7 +1030,7 @@ async def get_ai_response(cog: 'GurtCog', message: discord.Message, model_name:
contents.append(candidate.content)
# Add the function response part using the updated process_requested_tools
no_op_response_part = await process_requested_tools(cog, function_calls_found[0])
contents.append(types.Content(role="function", parts=[no_op_response_part]))
contents.append(types.Content(role="function", parts=no_op_response_part))
last_response_obj = current_response_obj # Keep track of the response containing the no_op
break # Exit loop