Skip to content

2.26.34

Choose a tag to compare

@KennethEnevoldsen KennethEnevoldsen released this 05 Nov 14:35
· 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 matched zho-Hans, because filter_tasks used contains_language, which falls back to the bare language. Added LanguageScripts.contains_langscript (strict for script-qualified codes, lenient for bare ones) and use it in filter_tasks, AbsTask.filter_languages and TaskResult.get_score. contains_language is unchanged.
  • A language code with a script combined with script= now raises a ValueError. It is validated up front in get_tasks, so the tasks= branch does not swallow it as a skipped task.
  • filter_tasks now requires language and script to match on the same code, as filter_languages does per subset. get_tasks(languages=["eng", "rus"], script=["Cyrl"]) no longer raises.
  • get_tasks without tasks= now passes exclusive_language_filter and skips tasks with no matching subset (with the existing warning), like the tasks= branch.
  • Added AbsTask.language_scripts and 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
  • Revert empty-text handling in Cohere encode (b29c431)

  • Fix citations2 (#5837)

  • fix citations 2

  • move json ignore

  • fix citatiosn 3 (63727e2)