A platform for community discussion. Free, open, simple.
FIX: do not perform null translation (#34084)
Sam3d9fbd1ddd76
diff --git a/plugins/discourse-ai/db/migrate/20250721080444_seed_personas_from_triage_scripts.rb b/plugins/discourse-ai/db/migrate/20250721080444_seed_personas_from_triage_scripts.rbindex 70315eec499..16aa111f5ca 100644--- a/plugins/discourse-ai/db/migrate/20250721080444_seed_personas_from_triage_scripts.rb+++ b/plugins/discourse-ai/db/migrate/20250721080444_seed_personas_from_triage_scripts.rb@@ -35,11 +35,11 @@ class SeedPersonasFromTriageScripts < ActiveRecord::Migration[8.0]"Unnamed triage automation script ID #{field["automation_id"]}"end)- temp = field["temperature"] || "NULL"+ temp = field["temperature"]# 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:")+ model = field["model"]+ model = model.split(":").last if model && model.start_with?("custom:")desc = "Seeded Persona for an LLM Triage script"prompt = field["system_prompt"]