Function calling inconsistent

hi . ive been trying to use the function calling , and ive noticed that sometimes it doesnt follow the function format and the output is in the [choices][content] rather than the [choices][content][function_call][arguments]. I find this quite annoying since im doing a pipeline where im feeding the output of this api call into another api call, so it doesnt work when if the data isnt stored correctly and following the function calling format. does anyone know what i should do

if happens if the API does not invoke your function. there are many situations how it can occur. however, if you want to let the API always call a particular function or any function, use tool_choice parameter.

1 Like