MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / get_integration_config

Function get_integration_config

tests/test_utils.py:113–143  ·  view source on GitHub ↗

Get config for integration tests with optillm

(port: int = DEFAULT_PORT)

Source from the content-addressed store, hash-verified

111 return False
112
113def get_integration_config(port: int = DEFAULT_PORT) -> Config:
114 """Get config for integration tests with optillm"""
115 config = Config()
116 config.max_iterations = 5 # Very small for CI speed
117 config.checkpoint_interval = 2
118 config.database.in_memory = True
119 config.evaluator.parallel_evaluations = 2
120 config.evaluator.timeout = 10 # Short timeout for CI
121
122 # Disable cascade evaluation to avoid warnings in simple test evaluators
123 config.evaluator.cascade_evaluation = False
124
125 # Set long timeout with no retries for integration tests
126 config.llm.retries = 0 # No retries to fail fast
127 config.llm.timeout = 120 # Long timeout to allow model to respond
128
129 # Configure to use optillm server
130 base_url = f"http://localhost:{port}/v1"
131 config.llm.api_base = base_url
132 config.llm.models = [
133 LLMModelConfig(
134 name=TEST_MODEL,
135 api_key="optillm",
136 api_base=base_url,
137 weight=1.0,
138 timeout=120, # Long timeout
139 retries=0 # No retries
140 )
141 ]
142
143 return config
144
145def get_simple_test_messages():
146 """Get simple test messages for basic validation"""

Callers 1

evolution_configFunction · 0.90

Calls 2

ConfigClass · 0.90
LLMModelConfigClass · 0.90

Tested by

no test coverage detected