Skip to content

Conversation

mongodben
Copy link
Collaborator

Jira: https://jira.mongodb.org/browse/EAI-1274

Changes

  • rate message only by message id endpoint
  • comment message only by message id endpoint
  • mark old message and comment id endpoints as deprecated
  • documentation on new endpoints and deprecated functionality

Notes

  • this is to enable the growth team which isn't able to easily access the conversation id for rating/commenting using the vercel ai sdk


export const CommentMessageRequest = SomeExpressRequest.merge(
export const CommentMessageRequestV2 = SomeExpressRequest.merge(
Copy link
Collaborator

@nlarew nlarew Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const CommentMessageRequestV2 = SomeExpressRequest.merge(
export const CommentStandaloneMessageRequest = SomeExpressRequest.merge(

nit - I feel like "v2" is not a great naming scheme, especially since this is part of the "v1" API. This name is more descriptive of what the request actually is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea valid, will update *MessageRequestV2 to *StandaloneMessageRequest throughout

Copy link
Collaborator

@nlarew nlarew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One naming suggestion otherwise LGTM

@mongodben mongodben merged commit aa0ddee into main Aug 25, 2025
2 checks passed
@mongodben mongodben deleted the rate_comment_message_v2 branch August 25, 2025 20:33
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