<%= render "chats/ai_avatar" %>

Enable AI Chats

<% if Current.user.ai_available? %> AI chat can answer financial questions and provide insights based on your data. To use this feature you'll need to explicitly enable it. <% else %> To use the AI assistant, you need to set the OPENAI_ACCESS_TOKEN environment variable or configure it in the Self-Hosting settings of your instance. <% end %>

<% if Current.user.ai_available? %> <%= form_with url: user_path(Current.user), method: :patch, class: "w-full", data: { turbo: false } do |form| %> <%= form.hidden_field "user[ai_enabled]", value: true %> <%= form.hidden_field "user[redirect_to]", value: "home" %> <%= form.submit "Enable AI Chats", class: "cursor-pointer hover:bg-inverse-hover w-full py-2 px-4 bg-inverse fg-inverse rounded-lg text-sm font-medium" %> <% end %> <% end %>

Disable anytime. All data sent to our LLM providers is anonymized.