-
Notifications
You must be signed in to change notification settings - Fork 743
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- I have this in the default_config.yaml file + in the examples/signal_processing/config.yaml file:
api_base: "https://generativelanguage.googleapis.com/v1beta/openai/"
api_key: "MY_GOOGLE_AI_STUDIO_API_KEY"
- I have executed this command in Ubuntu terminal:
export OPENAI_API_KEY=MY_GOOGLE_AI_STUDIO_API_KEY
But I still get the following error (Invalid JSON payload received. Unknown name "seed"):
python openevolve-run.py examples/signal_processing/initial_program.py examples/signal_processing/evaluator.py --config examples/signal_processing/config.yaml
2025-06-24 20:52:22,238 - INFO - Logging to examples/signal_processing/openevolve_output/logs/openevolve_20250624_205222.log
2025-06-24 20:52:22,243 - INFO - Set random seed to 42 for reproducibility
2025-06-24 20:52:22,282 - INFO - Initialized OpenAI LLM with model: gemini-2.5-flash-lite-preview-06-17
2025-06-24 20:52:22,304 - INFO - Initialized OpenAI LLM with model: gemini-2.5-flash
2025-06-24 20:52:22,304 - INFO - Initialized LLM ensemble with models: gemini-2.5-flash-lite-preview-06-17 (weight: 0.80), gemini-2.5-flash (weight: 0.20)
2025-06-24 20:52:22,326 - INFO - Initialized OpenAI LLM with model: gemini-2.5-flash-lite-preview-06-17
2025-06-24 20:52:22,349 - INFO - Initialized OpenAI LLM with model: gemini-2.5-flash
2025-06-24 20:52:22,349 - INFO - Initialized LLM ensemble with models: gemini-2.5-flash-lite-preview-06-17 (weight: 0.80), gemini-2.5-flash (weight: 0.20)
2025-06-24 20:52:22,349 - INFO - Initialized prompt sampler
2025-06-24 20:52:22,349 - INFO - Initialized prompt sampler
2025-06-24 20:52:22,349 - INFO - Set custom templates: system=evaluator_system_message, user=None
2025-06-24 20:52:22,350 - INFO - Initialized program database with 0 programs
2025-06-24 20:52:22,786 - INFO - Successfully loaded evaluation function from examples/signal_processing/evaluator.py
2025-06-24 20:52:22,786 - INFO - Initialized evaluator with examples/signal_processing/evaluator.py
2025-06-24 20:52:22,786 - INFO - Initialized OpenEvolve with examples/signal_processing/initial_program.py and examples/signal_processing/evaluator.py
2025-06-24 20:52:22,786 - INFO - Adding initial program to database
2025-06-24 20:52:22,875 - INFO - Evaluated program a91dbe79-2a47-425b-a60c-12224e6cca6e in 0.09s: runs_successfully=1.0000, composite_score=0.4200, output_length=91.0000, overall_score=0.3899, slope_changes=66.0000, lag_error=0.8697, avg_error=1.2418, false_reversals=55.2000, correlation=0.3768, noise_reduction=0.0000, smoothness_score=0.2326, responsiveness_score=0.5349, accuracy_score=0.3768, efficiency_score=1.0000, execution_time=0.0064, success_rate=1.0000
2025-06-24 20:52:22,875 - INFO - Starting evolution from iteration 0 for 100 iterations (total: 100)
2025-06-24 20:52:22,875 - INFO - Using island-based evolution with 4 islands
2025-06-24 20:52:22,875 - INFO - Island Status:
2025-06-24 20:52:22,875 - INFO - * Island 0: 1 programs, best=13.7281, avg=13.7281, diversity=0.00, gen=0
2025-06-24 20:52:22,875 - INFO - Island 1: 0 programs, best=0.0000, avg=0.0000, diversity=0.00, gen=0
2025-06-24 20:52:22,875 - INFO - Island 2: 0 programs, best=0.0000, avg=0.0000, diversity=0.00, gen=0
2025-06-24 20:52:22,875 - INFO - Island 3: 0 programs, best=0.0000, avg=0.0000, diversity=0.00, gen=0
2025-06-24 20:52:23,462 - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/openai/chat/completions "HTTP/1.1 400 Bad Request"
**2025-06-24 20:52:23,463 - WARNING - Error on attempt 1/4: Error code: 400 - [{'error': {'code': 400, 'message': 'Invalid JSON payload received. Unknown name "seed": Cannot find field.', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'description': 'Invalid JSON payload received. Unknown name "seed": Cannot find field.'}]}]}}]. Retrying...**
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working