mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 08:24:45 +00:00
parent
4368ef29d8
commit
5a78b6a953
@ -15,7 +15,8 @@ describe DiscourseAi::ChatMessageClassificator do
|
||||
it "stores the model classification data" do
|
||||
classification.classify!(chat_message)
|
||||
|
||||
result = ClassificationResult.find_by(target: chat_message, classification_type: model.type)
|
||||
result =
|
||||
ClassificationResult.find_by(target_id: chat_message.id, classification_type: model.type)
|
||||
|
||||
classification = result.classification.symbolize_keys
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user