Commit c7d1bb3
fix: ensure that get_model_metas raise an error if model name is incorrect (#4560)
* fix: ensure that get_model_metas raise an error if model name is incorrect
Currently it will just silently drop the model. Discovered when trying to get "mteb/baseline-bm25".
Added test and fixes the issue. This should in practice also speed up the function quite a bit.
Co-authored-by: Copilot <copilot@github.com>
* format
* fix typecheck
---------
Co-authored-by: Copilot <copilot@github.com>1 parent bfb8fe7 commit c7d1bb3
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
319 | 329 | | |
320 | 330 | | |
321 | 331 | | |
| |||
0 commit comments