Skip to content

How to enable GPT-4's JSON mode for Semantic Kernel? #6649

Closed Answered by wu-hongjun
wu-hongjun asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, I figured it out. Putting it here in case other people have similar problems:

You will need to specify this in the config.json:

"execution_settings": {
    "default": {
      "max_tokens": 800,
      "temperature": 0.5,
      "top_p": 1.0,
      "presence_penalty": 0.0,
      "frequency_penalty": 0.0,
      "response_format": { "type": "json_object" }
    }
  },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wu-hongjun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant