Skip to content

Commit 886c1d6

Browse files
committed
Default system prompts in config.py refer to the default template name in templates.py
1 parent f84be60 commit 886c1d6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openevolve/config.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ class LLMConfig(LLMModelConfig):
4343
name: str = "gpt-4o"
4444

4545
# Generation parameters
46-
system_message: Optional[str] = (
47-
"You are an expert coder helping to improve programs through evolution."
48-
)
46+
system_message: Optional[str] = "system_message"
4947
temperature: float = 0.7
5048
top_p: float = 0.95
5149
max_tokens: int = 4096
@@ -116,8 +114,8 @@ class PromptConfig:
116114
"""Configuration for prompt generation"""
117115

118116
template_dir: Optional[str] = None
119-
system_message: str = "You are an expert coder helping to improve programs through evolution."
120-
evaluator_system_message: str = """You are an expert code reviewer."""
117+
system_message: str = "system_message"
118+
evaluator_system_message: str = "evaluator_system_message"
121119

122120
# Number of examples to include in the prompt
123121
num_top_programs: int = 3

0 commit comments

Comments
 (0)