#building off previous chat

4 messages · Page 1 of 1 (latest)

ember pewter
#

Hello All.
Working with API (both 3.5-turbo and 4) and I'm trying to figure out how to "continue" a chat. Any suggestions would be welcomed.


Example:

When I'm at chat.openai.com/chat
What's the difference between pencil lead classifications such as H and B
And I get back a multi-paragraph answer. I then ask What are the ranges for each? And Chat responds with an on-target mult-paragraph answer (9H - 9B)

Using the API, the same initial question results in essentially the same response. However, the follow-up question is "dumb" as Chat doesn't remember what it just answered.

"That question is too vague" -- 3.5-turbo
"Here are the ranges: Healthy Weight: {blurb}, Underweight: A person is considered underweight if their BMI is below 18.5"; Overweight: {blurb}.

Instead, if I ask "What are the ranges of pencil lead" I get an acceptable answer.

There is an optional param, but it's not for Chat to "keep track of what it was discussing"

user string Optional
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
trim mesa
#

You need add each new message in messages array

fierce citrus
ember pewter
#

Great. Glad that's an option. I wonder if it will cost more tokens?

Ok, so do I need to include the previous questions and answers? And what would the request look like?