run_optimization should be sync

This commit is contained in:
Yiorgis Gozadinos 2026-03-09 12:32:13 +02:00
parent 8f39ccf29c
commit 45f7ac8d1b
No known key found for this signature in database
2 changed files with 8 additions and 10 deletions

View file

@ -494,15 +494,13 @@ def optimize(
for index, doc in enumerate(corpus, start=1)
]
asyncio.run(
run_optimization(
spec=spec,
config=app_config,
cases=cases,
max_calls=max_calls,
db_path=db,
output=output,
)
run_optimization(
spec=spec,
config=app_config,
cases=cases,
max_calls=max_calls,
db_path=db,
output=output,
)

View file

@ -207,7 +207,7 @@ class ReflectionLM:
return result.output
async def run_optimization(
def run_optimization(
spec: DatasetSpec,
config: AppConfig,
cases: list[QACase],