Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 672dc53

Browse files
committed
Update assistant.rb
1 parent a77e722 commit 672dc53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/ai_helper/assistant.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ def stream_prompt(completion_prompt, input, user, channel, force_default_locale:
185185
if (streamed_result.length > 10 && (Time.now - start > 0.3)) || Rails.env.test?
186186
sanitized = sanitize_result(streamed_result)
187187

188-
# Skip publishing if inside markdown or HTML link context
189188
if DiscourseAi::Utils::DiffUtils::SafetyChecker.safe_to_stream?(sanitized)
190189
payload = { result: sanitized, diff: streamed_diff, done: false }
191190
publish_update(channel, payload, user)

0 commit comments

Comments
 (0)