Skip to content

Commit 90da257

Browse files
committed
Update README.md
1 parent 341a424 commit 90da257

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,19 @@ Get from zero to evolving code in **30 seconds**:
8080
# Install OpenEvolve
8181
pip install openevolve
8282

83-
# Set your LLM API key (works with any OpenAI-compatible provider)
84-
export OPENAI_API_KEY="your-api-key"
83+
# The example uses Google Gemini by default (free tier available)
84+
# Get your API key from: https://aistudio.google.com/apikey
85+
export OPENAI_API_KEY="your-gemini-api-key" # Yes, use OPENAI_API_KEY env var
8586

8687
# Run your first evolution!
87-
python -c "
88-
from openevolve import run_evolution
89-
result = run_evolution(
90-
'examples/function_minimization/initial_program.py',
91-
'examples/function_minimization/evaluator.py'
92-
)
93-
print(f'Best score: {result.best_score:.4f}')
94-
"
88+
python openevolve-run.py examples/function_minimization/initial_program.py \
89+
examples/function_minimization/evaluator.py \
90+
--config examples/function_minimization/config.yaml \
91+
--iterations 50
9592
```
9693

94+
**Note:** The example config uses Gemini by default, but you can use any OpenAI-compatible provider by modifying the `config.yaml`. See the [configs](configs/) for full configuration options.
95+
9796
### 📚 **Library Usage**
9897

9998
OpenEvolve can be used as a library without any external files:

0 commit comments

Comments
 (0)