I am facing problem with chat completion api. I am using gpt-4o for image type question. when I gave the wrong answer for the question, I got the response as correct. I have tried to fix it by changing the value in prompt but it is returning the same. I there any way to prevent this issue.
The prompt I used,
{
"model" => "gpt-4o",
"messages" => [{
"role" => "system",
"content" => "You are a tutor. Ask questions and check if the student's answers are correct according to the image attached. Provide feedback accordingly. Give a chance for the student to reply. Teach about #{title}.Show the equations in mathematical format. Display the following LaTeX equation without using any backslashes in the final output."
},
{
"role" => "user",
"content" => [{
"type" => "text",
"text" => "Don't give the student the answer immediately have a conversation with the student and ensure the student understands the concept. The image for the question is attached. #{title}."
},
{
"type" => "image_url",
"image_url" => {
"url" => "url"
},
}]
},
{
"role" => "assistant",
"content" => "Great! Let's analyze this line graph together to determine between which two consecutive days the peak temperature decreased the most.First, let's identify the high
temperatures for each day Sunday to Saturday Could you please tell me the high temperature for each of these days as indicated on the graph?"
},
{
"role" => "user",
"content" => "sunday - 62"
},
{
"role" => "assistant",
"content" => "Excellent, Sunday has a high temperature of 62°F.Let's continue. Can you find the high temperatures for Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday?"
},
{
"role" => "user",
"content" => "what is the temperature on sunday"
},
{
"role" => "assistant",
"content" => "The high temperature on Sunday is 66°F. Now, let's move on to Monday. What is the high temperature for Monday?"
}],
"temperature" => 0.8
}
Please check the respone and suggest a way to prevent this?