previousResponseID #5225
Unanswered
revopscharlie
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement the persistence with the new Responses API following the guide.
Is there a recommended way of passing the previousResponseID from the previous message via useChat through to streamText so I can include it in the openAI.
I'm successfully bringing the OpenAI metadata back and storing the responseID in a metadata field in my messages table in Supabase. Just not quite working out how to then use that in a subsequent message.
Does something like sendExtraMessageFields on useChat pass this along?
(newbie so I may not be asking the right question!)
providerOptions: {
openai: {
previousResponseId: <can I get this from useChat?> as string,
},
},
});
Beta Was this translation helpful? Give feedback.
All reactions