- 安装 Python 3.11:Python Release Python 3.11.4 | Python.org
- 安装 git:https://git-scm.com/downloads
- 打开cmd
- 克隆仓库:
git clone https://github.com/SillyTavern/SillyTavern-extras
cd SillyTavern-extras
-
python -m pip install -r requirements.txt
-
pip install transformers
-
pip install flask
-
pip install -U flask-cors
-
python -m flask run
-
python server.py --enable-modules=caption,summarize,classify
- 获取 API URL。
http://localhost:5100,
如果您在本地运行,则不需要API。 - 到 SillyTavern 扩展菜单并输入 API URL,然后点击“连接”以加载扩展
成功连接后,以后使用SillyTavern的拓展需要的步骤
- 打开cmd
-
cd SillyTavern-extras
-
python server.py --enable-modules=caption,summarize,classify
这样就可以在SillyTavern使用拓展了