gpt4模型打开json模式后报错 #6268
Replies: 1 comment
-
Hey @xhacker5000, I'm here to assist you with any bugs, questions, or contributions while you wait for a human maintainer. Let's squash those bugs together! 🤖 To resolve the "Bad Request Error (HTTP 400)" indicating an invalid 'response_format' parameter when running a Node LLM workflow with the GPT-4 model in JSON mode, ensure that the Here is an example of how you can set the const requestOptions = {
model: 'gpt-4',
parameters: {
response_format: 'json_object', // Ensure this is set to 'json_object' or 'text'
// other parameters...
},
// other options...
};
// Make the API call with the correct requestOptions Make sure that the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions