First you install the plugin following Install plugins on a self-hosted site with GitHub - discourse/discourse-ai: Discourse AI now lives in the discourse/discourse repo · GitHub
Then you configure an OpenAI LLM as Configure API Keys for OpenAI
First you install the plugin following Install plugins on a self-hosted site with GitHub - discourse/discourse-ai: Discourse AI now lives in the discourse/discourse repo · GitHub
Then you configure an OpenAI LLM as Configure API Keys for OpenAI