ChatOptions

Prop Type Description Default
enabled boolean

Show a chat-like interface.

true
label string

Label for the chat input

"Ask AI"
title string

Title for the standalone chat view

"Help"
tabLabel string

Label for the tab bar

"Ask AI"
placeholder string

Placeholder for the chat input

"Ask AI…"
buttonLabel string

Label for the submit button

"Send"
errorText ComponentType<{ error: Error }>

Component to render when an error occurs in prompt view

showCopy boolean

Show copy response button

true
history boolean

Enable chat history features

  • enable saving chat history to local storage
  • show chat history UI
  • resume chat conversations
true
defaultView DefaultViewProps

Default (empty) view

disclaimerView DisclaimerViewProps

Disclaimer view

avatars AvatarsOptions

Avatars to use for chat messages.