Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 0b4ec02

Browse files
committed
seed information correctly in the DB
1 parent 96e6357 commit 0b4ec02

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

db/fixtures/personas/603_ai_personas.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,8 @@ def from_setting(setting_name)
7979

8080
persona.tools = tools.map { |name, value| [name, value] }
8181

82-
# Only set response_format if it's not defined as a method in the persona class
83-
if !instance.class.instance_methods.include?(:response_format)
84-
persona.response_format = instance.response_format
85-
end
86-
87-
# Only set examples if it's not defined as a method in the persona class
88-
persona.examples = instance.examples if !instance.class.instance_methods.include?(:examples)
82+
persona.response_format = instance.response_format
83+
persona.examples = instance.examples
8984

9085
persona.system_prompt = instance.system_prompt
9186
persona.top_p = instance.top_p

0 commit comments

Comments
 (0)