diff --git a/lib/translation/language_detector.rb b/lib/translation/language_detector.rb index 8cdfe02d..ad711749 100644 --- a/lib/translation/language_detector.rb +++ b/lib/translation/language_detector.rb @@ -38,8 +38,8 @@ module DiscourseAi skip_tool_details: true, feature_name: "translation", messages: [{ type: :user, content: @text }], - topic: topic, - post: post, + topic: @topic, + post: @post, ) structured_output = nil