Repository navigation
Commit 59e01fc
fix(forge): align with refactored EvalConfig + run_scenario signature
areas/forge.py was constructing EvalConfig with the old
`client_factory=` and `sampling=` kwargs and calling
run_scenario(scenario, client, config). The vendored forge_eval was
refactored (eval_runner.py:73) to drop those fields, and the new
run_scenario signature is (client, scenario, config) — positional
order matters.
Effect of the bug: any `lucebench --area forge` invocation against
v0.2.3 raises immediately with:
TypeError: EvalConfig.__init__() got an unexpected keyword
argument 'client_factory'
Fix: drop the broken kwargs, build the client per-scenario via a
local _build_client() helper, and swap the run_scenario arg order.
No behavioural change beyond making forge run end-to-end again.
Bumps version to 0.2.4.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 349cebd commit 59e01fc
4 files changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 285 | + | |
282 | 286 | | |
283 | 287 | | |
284 | | - | |
| 288 | + | |
285 | 289 | | |
286 | 290 | | |
287 | 291 | | |
288 | | - | |
| 292 | + | |
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments