Gpt-4-1106-preview behaving ludicrous in response to simple prompt

Hi, i get back {'lang': 'John'} or {'lang': 'native'} or {'lang': 'What's you mothers tongue, John'} in response to this prompt with function calling. What am i doing wrong? No matter how i finetune the prompt it responds like this.

Btw, the ‘gpt-4’ model handles the way it is supposed to. Thanks!

Your task is to ask the user about his native language. Avoid greeting the user. User’s name is John.


        "name": "update_user_lang",
        "description": "Updates user 'lang' column in the database",
        "parameters": {
          "type": "object",
          "properties": {
            "lang": {
              "type": "string",
              "description": "The language which is native for the user, e.g. Russian or Spanish.",
          "required": ["lang"],
1 Like

here u go try this its all trials and errors man just got to toy with it

Hm… not sure it’s even slightly related, but thanks anyway

have u tryed encoding it with utf yet cuz like really easy but just trial and error

This function needs to go away once called, or it could be called again, and again.

The main problem is the function lacks purpose in the function names and properties. It should be more like:

//when the world language that the user prefers to use is determined, call this function to make a record of the user’s language
: save_detected_user_language
// Two-letter abbreviation for language detected (example: “en”, “nl”, “de”…)
: iso_language_code

Then secondly, the latest model stinks.


Even I do not really understand what you want to achieve.

The model is providing you with a perfectly valid answer within its context: it just “asks the user about his native language” (hence: what is your native language first of all?)

So 1. you don’t know what you want to achieve and 2. you don’t know how to use gpt.

Tell me what you have in mind and I’ll try to show you that GPT doesn’t struggle when instructions make sense.