updateMessageFeedbackOp
updateMessageFeedbackOp(
ctx:StorageOperationsContext,uniqueId:string,feedback:MessageFeedback):Promise<StoredMessage|null>
Defined in: src/lib/db/chat/operations.ts:554
Update the feedback (like/dislike) for a message. Each regenerated response can have its own independent feedback.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
Storage operations context | |
|
|
|
The unique ID of the message to update |
|
|
‘like’, ‘dislike’, or null to clear feedback |
Returns
Promise<StoredMessage | null>
The updated message or null if not found
Last updated on