You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm combining appendMessageAnnotation with function calling where I'm storing the result of the function call into the message annotations as follow: data.appendMessageAnnotation({ messageID: messageID, result: top_stories.map((story: any) => ({ id: story.id, title: story.title, description: story.subtitle || story.description, image_url: story.image_url || story.image, category: story.type, url: story.url, })) })
When i console.log the message.annotations from the client side, the annotations array has 294 items. It should only have one
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I figured out that when adding it to the onFinal it works as intended however when added as a result of a function call, it repeats the annotations with every response. I tried onStart (to have it stream at the start instead of at the end, but still repeated)
Description
I'm combining appendMessageAnnotation with function calling where I'm storing the result of the function call into the message annotations as follow:
data.appendMessageAnnotation({ messageID: messageID, result: top_stories.map((story: any) => ({ id: story.id, title: story.title, description: story.subtitle || story.description, image_url: story.image_url || story.image, category: story.type, url: story.url, })) })
When i console.log the message.annotations from the client side, the annotations array has 294 items. It should only have one
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: