Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit b9b62b7

Browse files
author
Antonio
committed
install unverified plugins from config
1 parent 6a43b90 commit b9b62b7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ https://chat.openai.com/api/auth/session
7676
"model": "gpt-4", // gpt-4-browsing, text-davinci-002-render-sha, gpt-4, gpt-4-plugins
7777
"plugin_ids": ["plugin-d1d6eb04-3375-40aa-940a-c2fc57ce0f51"], // Wolfram Alpha example
7878
"disable_history": true,
79-
"PUID": "<_puid cookie for plus accounts>" // Only if you have a plus account and use GPT-4
79+
"PUID": "<_puid cookie for plus accounts>", // Only if you have a plus account and use GPT-4
80+
"unverfied_plugin_domains":["showme.redstarplugin.com"] // Unverfied plugins to install
8081
}
8182
```
8283

src/revChatGPT/V1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ def __init__(
200200
if self.config.get("plugin_ids", []):
201201
for plugin in self.config.get("plugin_ids"):
202202
self.install_plugin(plugin)
203+
if self.config.get("unverfied_plugin_domains", []):
204+
for domain in self.config.get("unverfied_plugin_domains"):
205+
self.get_unverified_plugin(domain,install=True)
203206

204207
@logger(is_timed=True)
205208
def __check_credentials(self) -> None:

0 commit comments

Comments
 (0)