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

Commit fd32e52

Browse files
committed
fix specs, full is a fallback now, diff is preferred
1 parent 8831257 commit fd32e52

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/lib/modules/ai_bot/tools/update_artifact_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
},
4545
bot_user: bot_user,
4646
llm: llm_model.to_llm,
47+
persona_options: {
48+
"update_algorithm" => "full",
49+
},
4750
context: {
4851
post_id: post.id,
4952
},
@@ -87,6 +90,9 @@
8790
{ artifact_id: artifact.id, instructions: "Update only JavaScript" },
8891
bot_user: bot_user,
8992
llm: llm_model.to_llm,
93+
persona_options: {
94+
"update_algorithm" => "full",
95+
},
9096
context: {
9197
post_id: post.id,
9298
},
@@ -154,6 +160,9 @@
154160
{ artifact_id: artifact.id, instructions: "Just update the HTML" },
155161
bot_user: bot_user,
156162
llm: llm_model.to_llm,
163+
persona_options: {
164+
"update_algorithm" => "full",
165+
},
157166
context: {
158167
post_id: post.id,
159168
},
@@ -184,6 +193,9 @@
184193
{ artifact_id: artifact.id, instructions: "Update to version 1" },
185194
bot_user: bot_user,
186195
llm: llm_model.to_llm,
196+
persona_options: {
197+
"update_algorithm" => "full",
198+
},
187199
context: {
188200
post_id: post.id,
189201
},
@@ -209,6 +221,9 @@
209221
},
210222
bot_user: bot_user,
211223
llm: llm_model.to_llm,
224+
persona_options: {
225+
"update_algorithm" => "full",
226+
},
212227
context: {
213228
post_id: post.id,
214229
},

0 commit comments

Comments
 (0)