From f994c53417a575f4b57475888df76a0ce176eca4 Mon Sep 17 00:00:00 2001 From: MatteoRaso Date: Sun, 2 Aug 2026 23:44:29 -0400 Subject: [PATCH] Fixed Documentation For Configs In the previous documentation, it said that `OpenEvolve` took in the path for the config file as input, which is false. I changed the documentation to show the proper way of inputting the config using the Config() class. --- configs/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/README.md b/configs/README.md index 6ce24383c1..836c4b3ad7 100644 --- a/configs/README.md +++ b/configs/README.md @@ -65,9 +65,13 @@ Then use with OpenEvolve: ```python from openevolve import OpenEvolve +from openevolve.config import Config + +config = Config() +config.from_yaml("my_config.yaml") evolve = OpenEvolve( initial_program_path="program.py", evaluation_file="evaluator.py", - config_path="my_config.yaml" + config=config ) ```