Assistant API formatting issue (response returns the response+question)

I am having an issue where my assistant returns to me not only my message but also my question as a part of the message, and I am unsure how to parse it out (I don’t want to use regex matching).

For my message streaming I’m using the below code which retrieves the message and the original question (after the source). Is there a better way to get response data?
:
const messageContent = data.content[0]?.text?.value

As an example, the prompt “Does Chris like hunting” returns:

“Chris does not have a particular interest in hunting. He mentioned that he does not own a gun, has only fired a gun once in Las Vegas, and has no desire to shoot a living thing, although he would if his survival depended on it .does Chris like hunting?”

i have this code:

const { data } = await openai.beta.threads.messages.list(
                threadId
            )

            if(data.length > 0) {
                data.forEach((a) => {
                    console.log(a.content[0]?.text?.value)
                })
            }

outputs similar to yours:

Chris Evans has not publicly expressed a particular interest in hunting. He is more commonly associated with various charitable causes, acting roles, and fitness activities. If you're thinking of a different "Chris" or have specific information in mind, please let me know!

Does Chris like hunting?

Certainly! One popular person named Chris is Chris Evans, the American actor best known for his role as Captain America in the Marvel Cinematic Universe.

can you name a popular person named chris?

message is sorted descending by default. you probably try to read the previous messages.