Hi again @smuzani . I tried your suggestion and it’s not working right, I mean, Iam now able to get a response from ChatGPT, but the result is giving me is incorrect. Below you can see the text I’m sending to the api (with full api call Kotlin code) and the response:
val text: String = “Please explain why my answer for the SAT is wrong. Here is the given passage:\n” +
“{enter your passage here}\n” +
“\n” +
"2. On Monday evening, Adam sent x text messages each hour for 3 hours, " +
“and Andrew sent y text messages each hour for 5 hours. " +
“Which of the following represents the total number of messages sent by Adam and Andrew” +
" on Monday evening?” +
“A) 8xy\n” +
“B) 3x+5y\n” +
“C) 15xy\n” +
“D) 5x+3y\n” +
“\n” +
“My answer was D) 5x+3y
\n” +
“\n” +
“Why is my answer wrong?”
val openAI = OpenAI(AppSettings.chatGPTApiSecretKey)
val chatCompletionRequest = ChatCompletionRequest(
model = ModelId(“gpt-3.5-turbo”),
messages = listOf(
ChatMessage(
role = ChatRole.User,
content = text
)
)
)
completion = openAI.chatCompletion(chatCompletionRequest)
completions = openAI.chatCompletions(chatCompletionRequest)
Responses:
Most of the time is giving this next response, which, as you can see, is incorrect, because the correct one is B)
ChatMessage(role=ChatRole(role=assistant), content=Your answer is wrong because it represents the sum of the number of messages that Adam and Andrew sent in just one hour, rather than the total number of messages they sent over the entire time period (3 hours for Adam and 5 hours for Andrew). The correct answer is C) 15xy, which represents the total number of messages sent by Adam and Andrew over the course of the given time period., name=null)
Response 2: Only once it gave me a correct answer, but the explanation is not coherent.
ChatMessage(role=ChatRole(role=assistant), content=Your answer is incorrect because it only represents the total number of text messages sent by Adam and Andrew in one particular hour, whereas the question is asking for the total number of messages sent over the entire 3-hour period for Adam and 5-hour period for Andrew. Answer choice D only adds up the number of messages sent in the same hour for both Adam and Andrew, whereas the correct answer should take into account the number of hours each person sent messages for. The correct answer is B) 3x+5y., name=null)
Response 3:
Many times I get a 500 exception.
In my conclusion, ChatGPT is not working fine for this purpose. Or maybe I’m doing something wrong?
What do you think?