FIX: Remove custom prefix when seeding personas for triage (#34066)

This commit is contained in:
Roman Rizzi
2025-08-04 10:16:45 -03:00
committed by GitHub
parent 23650aba6a
commit 723e13473f
@@ -36,6 +36,11 @@ class SeedPersonasFromTriageScripts < ActiveRecord::Migration[8.0]
end
)
temp = field["temperature"] || "NULL"
# Extract the model ID from the setting value (e.g., "custom:-5" -> "-5")
model = field["model"] || "NULL"
model = model.split(":").last if model.start_with?("custom:")
row =
"'#{name}', 'Seeded Persona for an LLM Triage script', FALSE, '#{field["system_prompt"]}', #{temp}, #{field["model"]}, NOW(), NOW()"