Skip to content

Comments

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

Merged
MaxLeiter merged 18 commits intovercel:mainfrom
inkeep:add-message-data
Feb 9, 2024
Merged

fix: Message annotations are compatible for any message type#959
MaxLeiter merged 18 commits intovercel:mainfrom
inkeep:add-message-data

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 <maxwell.leiter@gmail.com>
Co-authored-by: Max Leiter <maxwell.leiter@gmail.com>
@MaxLeiter MaxLeiter merged commit ed1e278 into vercel:main Feb 9, 2024
@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