This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def each_message_length
5656 messages . each_with_index do |msg , idx |
5757 next if msg [ "content" ] . length <= 1000
5858
59- errors . add ( :messages , I18n . t ( "errors.prompt_message_length" , idx : idx + 1 ) )
59+ errors . add ( :messages , I18n . t ( "discourse_ai. errors.prompt_message_length" , idx : idx + 1 ) )
6060 end
6161 end
6262end
Original file line number Diff line number Diff line change 106106 flagged_by_toxicity : The AI plugin flagged this after classifying it as toxic.
107107 flagged_by_nsfw : The AI plugin flagged this after classifying at least one of the attached images as NSFW.
108108
109- errors :
110- prompt_message_length : The message %{idx} is over the 1000 character limit.
111- invalid_prompt_role : The message %{idx} has an invalid role.
112-
113109 reports :
114110 overall_sentiment :
115111 title : " Overall sentiment"
358354 persona_disabled : The persona specified is disabled. Check the persona_name or persona_id params.
359355 no_default_llm : The persona must have a default_llm defined.
360356 user_not_allowed : The user is not allowed to participate in the topic.
357+ prompt_message_length : The message %{idx} is over the 1000 character limit.
You can’t perform that action at this time.
0 commit comments