mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 12:08:12 -05:00
FIX: Truncate seeded persona's names to fit name length constraint (#34393)
This commit is contained in:
@@ -35,6 +35,10 @@ class SeedPersonasFromTriageScripts < ActiveRecord::Migration[8.0]
|
||||
"Unnamed triage automation script ID #{field["automation_id"]}"
|
||||
end
|
||||
)
|
||||
|
||||
# Persona's name field cannot be longer than 100 chars.
|
||||
name = name.truncate(99)
|
||||
|
||||
temp = field["temperature"]
|
||||
|
||||
# Extract the model ID from the setting value (e.g., "custom:-5" -> "-5")
|
||||
|
||||
Reference in New Issue
Block a user