ðĶ Firefox AI Chatbot Sidebar
This tutorial is a community contribution and is not supported by the Sage WebUI team. It serves only as a demonstration on how to customize Sage WebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
ðĶ Firefox AI Chatbot Sidebarâ
Integrating Sage WebUI as a Local AI Chatbot Browser Assistant in Mozilla Firefox
Table of Contents
- Prerequisites
- Enabling AI Chatbot in Firefox
- Configuring about:config Settings
- URL Parameters for Sage WebUI
- Additional about:config Settings
- Accessing the AI Chatbot Sidebar
Prerequisitesâ
Before integrating Sage WebUI as a AI chatbot browser assistant in Mozilla Firefox, ensure you have:
- Sage WebUI instance URL (local or domain)
- Firefox browser installed
Enabling AI Chatbot in Firefoxâ
- Click on the hamburger button (three horizontal lines button at the top right corner, just below the
Xbutton) - Open up Firefox settings
- Click on the
Firefox Labssection - Toggle on
AI Chatbot
Alternatively, you can enable AI Chatbot through the about:config page (described in the next section).
Configuring about:config Settingsâ
- Type
about:configin the Firefox address bar - Click
Accept the Risk and Continue - Search for
browser.ml.chat.enabledand toggle it totrueif it's not already enabled through Firefox Labs - Search for
browser.ml.chat.hideLocalhostand toggle it tofalse
browser.ml.chat.prompts.#â
To add custom prompts, follow these steps:
- Search for
browser.ml.chat.prompts.#(replace#with a number, e.g.,0,1,2, etc.) - Click the
+button to add a new prompt - Enter the prompt label, value, and ID (e.g.,
{"id":"My Prompt", "value": "This is my custom prompt.", "label": "My Prompt"}) - Repeat the process to add more prompts as desired
browser.ml.chat.providerâ
- Search for
browser.ml.chat.provider - Enter your Sage WebUI instance URL, including any optional parameters (e.g.,
https://my-sage-open-webui-instance.com/?model=browser-productivity-assistant&temporary-chat=true&tools=jina_web_scrape)
URL Parameters for Sage WebUIâ
The following URL parameters can be used to customize your Sage WebUI instance:
Models and Model Selectionâ
models: Specify multiple models (comma-separated list) for the chat session (e.g.,/?models=model1,model2)model: Specify a single model for the chat session (e.g.,/?model=model1)
YouTube Transcriptionâ
youtube: Provide a YouTube video ID to transcribe the video in the chat (e.g.,/?youtube=VIDEO_ID)
Web Searchâ
web-search: Enable web search functionality by setting this parameter totrue(e.g.,/?web-search=true)
Tool Selectionâ
toolsortool-ids: Specify a comma-separated list of tool IDs to activate in the chat (e.g.,/?tools=tool1,tool2or/?tool-ids=tool1,tool2)
Call Overlayâ
call: Enable a video or call overlay in the chat interface by setting this parameter totrue(e.g.,/?call=true)
Initial Query Promptâ
q: Set an initial query or prompt for the chat (e.g.,/?q=Hello%20there)
Temporary Chat Sessionsâ
temporary-chat: Mark the chat as a temporary session by setting this parameter totrue(e.g.,/?temporary-chat=true)
See /features/chat-features/url-params for more info on URL parameters and how to use them.
Additional about:config Settingsâ
The following about:config settings can be adjusted for further customization:
browser.ml.chat.shortcuts: Enable custom shortcuts for the AI chatbot sidebarbrowser.ml.chat.shortcuts.custom: Enable custom shortcut keys for the AI chatbot sidebarbrowser.ml.chat.shortcuts.longPress: Set the long press delay for shortcut keysbrowser.ml.chat.sidebar: Enable the AI chatbot sidebarbrowser.ml.checkForMemory: Check for available memory before loading modelsbrowser.ml.defaultModelMemoryUsage: Set the default memory usage for modelsbrowser.ml.enable: Enable the machine learning features in Firefoxbrowser.ml.logLevel: Set the log level for machine learning featuresbrowser.ml.maximumMemoryPressure: Set the maximum memory pressure thresholdbrowser.ml.minimumPhysicalMemory: Set the minimum physical memory requiredbrowser.ml.modelCacheMaxSize: Set the maximum size of the model cachebrowser.ml.modelCacheTimeout: Set the timeout for model cachebrowser.ml.modelHubRootUrl: Set the root URL for the model hubbrowser.ml.modelHubUrlTemplate: Set the URL template for the model hubbrowser.ml.queueWaitInterval: Set the interval for queue waitbrowser.ml.queueWaitTimeout: Set the timeout for queue wait
Accessing the AI Chatbot Sidebarâ
To access the AI chatbot sidebar, use one of the following methods:
- Press
CTRL+Bto open the bookmarks sidebar and switch to AI Chatbot - Press
CTRL+Alt+Xto open the AI chatbot sidebar directly