diff --git a/plugins/openai-plugin/index.ts b/plugins/openai-plugin/index.ts index 83579f44d..040d3d08a 100644 --- a/plugins/openai-plugin/index.ts +++ b/plugins/openai-plugin/index.ts @@ -85,6 +85,7 @@ const registerListener = () => { events.on(EventName.OnNewMessageRequest, handleMessageRequest); }; +// Preference update - reconfigure OpenAI const onPreferencesUpdate = () => { setup(); }; diff --git a/plugins/openai-plugin/package.json b/plugins/openai-plugin/package.json index efc456536..0d666a81f 100644 --- a/plugins/openai-plugin/package.json +++ b/plugins/openai-plugin/package.json @@ -6,6 +6,7 @@ "main": "dist/index.js", "module": "dist/module.js", "author": "Jan ", + "requiredVersion": "^0.3.1", "license": "MIT", "activationPoints": [ "init"