ChatOptions

PropTypeDescription
enabledboolean = trueShow a chat-like interface.
labelstring = "Ask AI"Label for the chat input
titlestring = "Help"Title for the standalone chat view
tabLabelstring = "Ask AI"Label for the tab bar
placeholderstring = "Ask AI…"Placeholder for the chat input
buttonLabelstring = "Send"Label for the submit button
errorTextComponentType<{ error: Error }>Component to render when an error occurs in prompt view
showCopyboolean = trueShow copy response button
historyboolean = trueEnable chat history features - enable saving chat history to local storage - show chat history UI - resume chat conversations
defaultViewDefaultViewPropsDefault (empty) view
disclaimerViewDisclaimerViewPropsDisclaimer view
avatarsAvatarsOptionsAvatars to use for chat messages.