SillyTavern / SillyTavern-WebSearch-Selenium

Add-on for the Web Search extension that provides the web browsing capabilities without the need for Extras API.
GNU Affero General Public License v3.0
21 stars 1 forks source link
plugin

WebSearch Selenium Plugin

Add-on for the Web Search extension that provides the web browsing capabilities without the need for Extras API.

How to install

This plugin will not work in Termux or any ARM64 Linux (Raspberry Pi, etc). See this issue.

  1. Before you begin, make sure you set a config enableServerPlugins to true in the config.yaml file of SillyTavern.

  2. Open a terminal in your SillyTavern directory, then run the following:

cd plugins
git clone https://github.com/SillyTavern/SillyTavern-WebSearch-Selenium
  1. Restart the SillyTavern server. Then choose "Selenium Plugin" as a source in the Web Search extension UI.

Configuration

The plugin can be configured using environment variables before startup:

Choose a preferred browser

ST_SELENIUM_BROWSER (string) - sets the browser to be used. Default: chrome.

Possible values (case-sensitive!):

A chosen browser must be available and installed on your machine.

Run in headless mode

Save debug pages

How to build

Clone the repository, then run npm install.

# Debug build
npm run build:dev
# Prod build
npm run build

License

AGPLv3

Note

This repository redistributes the official Selenium Manager binaries, which are under an Apache-2.0 license.

You can find them here: selenium_manager_artifacts