From 6f8960e5492e884c50b362f5f3a6ac24d4b89f61 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Mon, 7 Jul 2025 14:59:48 +0800 Subject: [PATCH] FIX: Pass topic to context (#1488) --- lib/translation/language_detector.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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