Closed jsidney closed 1 year ago
Hi @jsidney, you need to also reference the configuration from the environment and pass it to the createRouter function like this,
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
return await createRouter({
logger: env.logger,
config: env.config
});
}
We updated the installation instructions for this, thank you for bringing this up!
thanks @ch-enfuse ! worked like a charm!
I have just installed the latest version of the plugin and created the
chatgpt.ts
file under plugins. However, my linter is returning the following error:this is what the code looks like:
any thoughts?