Commit b12ac5b
committed
fix(inspect): align GenerateConfig field names with current inspect-ai
- rename CLI/eval_set kwarg 'frequence_penalty' -> 'frequency_penalty' (typo; inspect-ai field name)
- rename 'log_probs' -> 'logprobs' (inspect-ai field name)
- pass 'response_format' only when the installed inspect-ai still accepts it, warn otherwise (removed in >= 0.3.141)
Fixes #1327: a fresh 'pip install lighteval' resolves inspect-ai to the latest release and 'lighteval eval' crashed at startup with a pydantic ValidationError. Verified on inspect-ai 0.3.257: the repro command from the issue now completes.1 parent 932e1f2 commit b12ac5b
1 file changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
| |||
267 | 286 | | |
268 | 287 | | |
269 | 288 | | |
270 | | - | |
| 289 | + | |
271 | 290 | | |
272 | 291 | | |
273 | 292 | | |
| |||
309 | 328 | | |
310 | 329 | | |
311 | 330 | | |
312 | | - | |
| 331 | + | |
313 | 332 | | |
314 | 333 | | |
315 | 334 | | |
| |||
474 | 493 | | |
475 | 494 | | |
476 | 495 | | |
477 | | - | |
| 496 | + | |
478 | 497 | | |
479 | 498 | | |
480 | 499 | | |
481 | 500 | | |
482 | 501 | | |
483 | | - | |
| 502 | + | |
484 | 503 | | |
485 | 504 | | |
486 | 505 | | |
487 | 506 | | |
488 | 507 | | |
489 | | - | |
| 508 | + | |
490 | 509 | | |
491 | 510 | | |
492 | 511 | | |
| |||
0 commit comments