Skip to content

Commit c5dcbcc

Browse files
romanrizzimartin-brennan
authored andcommitted
FIX: Remove custom prefix when seeding personas for triage (#34066)
1 parent cc6c93a commit c5dcbcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/discourse-ai/db/migrate/20250721080444_seed_personas_from_triage_scripts.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def up
3636
end
3737
)
3838
temp = field["temperature"] || "NULL"
39+
40+
# Extract the model ID from the setting value (e.g., "custom:-5" -> "-5")
41+
model = field["model"] || "NULL"
42+
model = model.split(":").last if model.start_with?("custom:")
43+
3944
row =
4045
"'#{name}', 'Seeded Persona for an LLM Triage script', FALSE, '#{field["system_prompt"]}', #{temp}, #{field["model"]}, NOW(), NOW()"
4146

0 commit comments

Comments
 (0)