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

Commit 9bee4da

Browse files
committed
fix specs
1 parent ea8adf3 commit 9bee4da

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/ai_bot/bot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def reply(context, &update_blk)
191191
ongoing_chain = false
192192
text = result
193193

194-
# we must strip out thinking
194+
# we must strip out thinking and other types of blocks
195195
if result.is_a?(Array)
196196
text = +""
197197
result.each { |item| text << item if item.is_a?(String) }

lib/completions/endpoints/fake.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def perform_completion!(
121121
model_params = {},
122122
feature_name: nil,
123123
feature_context: nil,
124-
partial_tool_calls: false
124+
partial_tool_calls: false,
125+
ouput_thinking: false
125126
)
126127
last_call = { dialect: dialect, user: user, model_params: model_params }
127128
self.class.last_call = last_call

lib/completions/endpoints/open_ai.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def perform_completion!(
4242
feature_name: nil,
4343
feature_context: nil,
4444
partial_tool_calls: false,
45+
output_thinkings: false,
4546
&blk
4647
)
4748
@disable_native_tools = dialect.disable_native_tools?

0 commit comments

Comments
 (0)