mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 11:45:21 -05:00
FIX: Remove custom prefix when seeding personas for triage (#34066)
This commit is contained in:
@@ -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()"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user