ChatOptions

PropTypeDescriptionDefault
enabledboolean

Show a chat-like interface.

true
labelstring

Label for the chat input

"Ask AI"
titlestring

Title for the standalone chat view

"Help"
tabLabelstring

Label for the tab bar

"Ask AI"
placeholderstring

Placeholder for the chat input

"Ask AI…"
buttonLabelstring

Label for the submit button

"Send"
errorTextComponentType<{ error: Error }>

Component to render when an error occurs in prompt view

showCopyboolean

Show copy response button

true
historyboolean

Enable chat history features

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

Default (empty) view

disclaimerViewDisclaimerViewProps

Disclaimer view

avatarsAvatarsOptions

Avatars to use for chat messages.