Question about exchanging messages using AssistantsEndpoint #280
Unanswered
mariosimaojr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I'm having trouble knowing the correct way to code the following situation.
I'm using AssistantsEndpoint because I need to send a file - which I sent using UploadFileAsync - for ChatGPT to analyze and answer questions about that file.
I managed to do this, but I created a list of hard-coded messages, and used CreateThreadRequest(messages) passing this list, so that ChatGPT could answer the questions. So far so good.
However, I want to make this iterative with the user - that is, the user types in the question they want to ask about the file, and I send it to ChatGPT.
I'm doing it this way: passing the complete list of messages every time and creating a new CreateThreadRequest - but in my understanding this is not the right way to do it.
I would like to pass only new messages to get new responses. Is it possible to do that?
Thank you very much in advance.
Beta Was this translation helpful? Give feedback.
All reactions