Appends a message to the chat container.
'user' | 'ai'
The message content
The created message element
Sends a message using the selected provider and updates the UI.
User prompt
Selected provider
API Key for the provider
Optionaloptions: { baseUrl?: string; modelName?: string }Local settings (url, model)
Analyzes page content and offers actions.
Smoothly scrolls the chat history to the bottom.
Manages the chat flow and UI interaction