mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-15 18:43:29 +00:00
This PR fixes an issue where LLM enumerator would error out when `SiteSetting.ai_spam_detection = true` but there was no `AiModerationSetting.spam` present. Typically, we add an `LlmDependencyValidator` for the setting itself, however, since Spam is unique in that it has it's model set in `AiModerationSetting` instead of a `SiteSetting`, we'll add a simple check here to prevent erroring out.
Discourse AI Plugin
Plugin Summary
For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco
Languages
Ruby
81.2%
JavaScript
15.6%
SCSS
2.2%
CSS
0.4%
HTML
0.4%
Other
0.2%