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

Commit 143af12

Browse files
committed
lint
1 parent 23cee90 commit 143af12

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

app/controllers/discourse_ai/admin/ai_personas_controller.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ def stream_reply
128128
topic_id: topic_id,
129129
raw: params[:query],
130130
skip_validations: true,
131-
custom_fields: { DiscourseAi::AiBot::Playground::BYPASS_AI_REPLY_CUSTOM_FIELD => true },
131+
custom_fields: {
132+
DiscourseAi::AiBot::Playground::BYPASS_AI_REPLY_CUSTOM_FIELD => true,
133+
},
132134
)
133135
else
134136
post =
@@ -139,7 +141,9 @@ def stream_reply
139141
archetype: Archetype.private_message,
140142
target_usernames: "#{user.username},#{persona.user.username}",
141143
skip_validations: true,
142-
custom_fields: { DiscourseAi::AiBot::Playground::BYPASS_AI_REPLY_CUSTOM_FIELD => true },
144+
custom_fields: {
145+
DiscourseAi::AiBot::Playground::BYPASS_AI_REPLY_CUSTOM_FIELD => true,
146+
},
143147
)
144148

145149
topic = post.topic
@@ -150,7 +154,13 @@ def stream_reply
150154

151155
user = current_user
152156

153-
DiscourseAi::AiBot::ResponseHttpStreamer.queue_streamed_reply(io, persona, user, topic, post)
157+
DiscourseAi::AiBot::ResponseHttpStreamer.queue_streamed_reply(
158+
io,
159+
persona,
160+
user,
161+
topic,
162+
post,
163+
)
154164
end
155165

156166
private

lib/ai_bot/playground.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module DiscourseAi
44
module AiBot
55
class Playground
6-
76
BYPASS_AI_REPLY_CUSTOM_FIELD = "discourse_ai_bypass_ai_reply"
87

98
attr_reader :bot

0 commit comments

Comments
 (0)