Repository navigation
2.26.34
·
26 commits
to main
since this release
2.26.34 (2026-11-05)
Fix
-
fix: match only the requested script for language-script codes in
get_tasks(#5826) -
fix: match only the requested script for language-script codes in
get_tasks
Fixes #5768. Follows up on #5483 and #5720.
languages=["zho-Hant"]also matchedzho-Hans, becausefilter_tasksusedcontains_language, which falls back to the bare language. AddedLanguageScripts.contains_langscript(strict for script-qualified codes, lenient for bare ones) and use it infilter_tasks,AbsTask.filter_languagesandTaskResult.get_score.contains_languageis unchanged.- A language code with a script combined with
script=now raises aValueError. It is validated up front inget_tasks, so thetasks=branch does not swallow it as a skipped task. filter_tasksnow requires language and script to match on the same code, asfilter_languagesdoes per subset.get_tasks(languages=["eng", "rus"], script=["Cyrl"])no longer raises.get_taskswithouttasks=now passesexclusive_language_filterand skips tasks with no matching subset (with the existing warning), like thetasks=branch.- Added
AbsTask.language_scriptsand language type hints.
Tests added in tests/test_get_tasks.py, tests/test_filter_tasks.py and tests/test_languages.py.
Co-authored-by: Spicy Shark <321699413+spicysharkco@users.noreply.github.com>
- fix based on comments
Co-authored-by: Spicy Shark <321699413+spicysharkco@users.noreply.github.com> (01fd73c)
Unknown
-
Add cohere embed v5 (#5838)
-
Add Cohere embed-v5.0-pro and embed-v5.0-fast models
- Add ModelMeta for Cohere/Cohere-embed-v5.0-pro and Cohere/Cohere-embed-v5.0-fast
(2048-dim, 8192 context, multilingual) - Replace empty texts with " " before embedding: the API rejects requests
whose texts are all empty, and " " yields the same embedding as "" in
mixed batches