Open nkeat12 opened 9 months ago
You can use sendDataMessage
to send any data from the assistant response to the client.
Hey, I have the same question, and I don't quite understand how I could append the metadata to the sendDataMessage
function based on the documentation example. It creates a new message, where what I was looking for is the message object to include the metadata that comes from the openai response.
Should I fetch the message again from openai?
Did a small PR to solve this, LMK if it's useful :pray:
@lgrammel did you have the chance to review this? It's blocking our team, and it'd be awesome to know if you'll add this
Description
is there a way to send metadata when using experimental_AssistantResponse? I saw it was added with sendExtraMessageFields..
Code example
No response
Additional context
No response