Сначала установите плагин, следуя инструкциям по адресу Install plugins on a self-hosted site, используя GitHub - discourse/discourse-ai: Discourse AI now lives in the discourse/discourse repo · GitHub.
Затем настройте LLM от OpenAI, следуя инструкциям по адресу Configure API Keys for OpenAI.