From 699ad5cf8fffd20b67cd4bb2352bb500036a18c1 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Mon, 3 Mar 2025 14:54:54 +1100 Subject: [PATCH] Fix specs --- lib/completions/endpoints/fake.rb | 2 +- lib/completions/endpoints/open_ai.rb | 2 +- spec/lib/modules/ai_bot/playground_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/completions/endpoints/fake.rb b/lib/completions/endpoints/fake.rb index 7b7ff27cf..70b04543d 100644 --- a/lib/completions/endpoints/fake.rb +++ b/lib/completions/endpoints/fake.rb @@ -122,7 +122,7 @@ def perform_completion!( feature_name: nil, feature_context: nil, partial_tool_calls: false, - ouput_thinking: false + output_thinking: false ) last_call = { dialect: dialect, user: user, model_params: model_params } self.class.last_call = last_call diff --git a/lib/completions/endpoints/open_ai.rb b/lib/completions/endpoints/open_ai.rb index d68dbcdb9..35afd7787 100644 --- a/lib/completions/endpoints/open_ai.rb +++ b/lib/completions/endpoints/open_ai.rb @@ -42,7 +42,7 @@ def perform_completion!( feature_name: nil, feature_context: nil, partial_tool_calls: false, - output_thinkings: false, + output_thinking: false, &blk ) @disable_native_tools = dialect.disable_native_tools? diff --git a/spec/lib/modules/ai_bot/playground_spec.rb b/spec/lib/modules/ai_bot/playground_spec.rb index ddaff3cd8..e0371834d 100644 --- a/spec/lib/modules/ai_bot/playground_spec.rb +++ b/spec/lib/modules/ai_bot/playground_spec.rb @@ -876,7 +876,7 @@ thinking_signature: "thinking-signature-123", redacted_thinking_signature: "thinking-redacted-signature-123", }, - { type: :user, content: "Say Cat", id: "bruce1" }, + { type: :user, content: "Say Cat", id: user.username }, ], ) end