Function Call mistakes when calling functions and injecting json in the response

Hello!, I am experiencing incorrect behavior when my assistant must access a function. Instead of calling the function
It ends up indicating in its response to the user that it will call this or that function.

Example:

Prompt: How’s the weather today?
Response: It seems that you need information about the weather, I will proceed to call the function get_weather([“today”])

And that is the response it gives to the user instead of executing the get_weather function with the “today” parameter.

Any clue to mitigate this behavior?