Gpt-3.5-turbo-16k-0613 tries to call a function that doesn't exist

When using gpt-3.5-turbo-16k-0613 and passing in various functions, the model tries to call a function that is not specified in the function array.

The prompt:

if 1+1 = 1 then 1=4 

whats 4-1 ?

It then tries to call a function called “python” with the argument “4-1”. I have not specified a function called python.

1 Like

This does seem to be a common issue people have mentioned, have you tried to tell the system that python is not implemented? i.e. add an a extra function definition called python with the definition “Not implemented”

I simply ignore unknown functions for now so it’s not a big issue.

I have noticed this too

Not only it returns “python” but also the “arguments” is a string, instead of dictionary. I added a hack for now,

would you mind sharing the hack, might benefit others who need a workaround?

I just noticed this as well. Placing specific instructions in the prompt to only return one of the defined functions appears to work well for gpt-4, but not for gpt-3.5-turbo

2 Likes

Is there a permanent/stable solution to this, I am still encountering this with gpt-3.5-turbo-1106 model.