Message actions
v0.64.0, changelogBetaThe actions under a model's answer (Copy, Regenerate, Good and Bad with a reason, a ‹ 2 / 3 › switcher), quiet until hovered or focused, always shown on touch and to the keyboard.
API reference
Generated from the types. Every part also takes className.
MessageActions
- copyText
stringThe answer as text: shows Copy.- onRegenerate
() => voidShows Regenerate. The new answer becomes the last version.- feedback
"good" | "bad" | nullThe feedback given (controlled): "good", "bad" or null.- defaultFeedback
"good" | "bad" | null = null- onFeedbackChange
(feedback: MessageFeedback | null) => voidShows Good and Bad. Called with the new value; pressing the pressed one again clears it (null).- reasons
MessageFeedbackReason[]After Bad: a row of reasons to pick one from ("Wrong facts", "Did not follow the request").- reason
stringThe picked reason (controlled).- onReasonChange
(reason: string | undefined) => void- version
numberThe version shown, from 1. Withversionsabove 1, shows ‹ 2 / 3 ›.- versions
numberHow many versions regeneration has made.- onVersionChange
(version: number) => void- quiet
boolean = trueOut of sight until the turn is hovered or focused, with a mouse only. Set false on the latest answer to keep it shown.- locale
stringFormats the version numbers.- labels
Partial<MessageActionsLabels>