Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Message annotations are compatible for any message type #959

Merged
merged 18 commits into from
Feb 9, 2024

Conversation

nick-inkeep
Copy link
Contributor

@nick-inkeep nick-inkeep commented Feb 5, 2024

Few updates/fixes:

  • resetting self.messageAnnotations after stream-part is encoded. Was causing issue when appendMessageAnnotation was used outside of onFinal. Was the root cause of message annotations are repeated #952.
  • made it so that annotations can be added to any message type, including function_call, not just text
  • added test cases to parse-complex-response.test.ts to account for the above
  • added example usage to the chat-with-functions page/route for the openai example

@nick-inkeep nick-inkeep changed the title Message annotations work for any message type Message annotations are compatible for any message type Feb 5, 2024
@nick-inkeep nick-inkeep changed the title Message annotations are compatible for any message type fix: Message annotations are compatible for any message type Feb 5, 2024
nick-inkeep and others added 2 commits February 9, 2024 13:29
Co-authored-by: Max Leiter <[email protected]>
@MaxLeiter MaxLeiter merged commit ed1e278 into vercel:main Feb 9, 2024
8 checks passed
@MaxLeiter
Copy link
Member

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants