discourse/plugins/discourse-ai/lib/sentiment/constants.rb
Rafael dos Santos Silva 2be96e2098
FEATURE: Add agent-backed sentiment classification (#40136)
Previously, sentiment and emotion classification only used configured
classification model endpoints, which blocked sites that could not run
those models.

This change lets admins choose agent-backed LLM classifiers for
sentiment and emotion while storing results under stable model keys so
LLM changes do not force historic reclassification.
2026-05-26 10:32:54 -03:00

15 lines
482 B
Ruby
Vendored

# frozen_string_literal: true
module DiscourseAi
module Sentiment
module Constants
SENTIMENT_MODEL = "cardiffnlp/twitter-roberta-base-sentiment-latest"
EMOTION_MODEL = "SamLowe/roberta-base-go_emotions"
SENTIMENT_AGENT_MODEL = "discourse-ai/sentiment-agent"
EMOTION_AGENT_MODEL = "discourse-ai/emotion-agent"
CLASSIFICATION_MODEL_STRATEGY = "classification_model"
AGENT_STRATEGY = "agent"
SENTIMENT_THRESHOLD = 0.6
end
end
end