Skip to content

2.27.18

Choose a tag to compare

@KennethEnevoldsen KennethEnevoldsen released this 18 Nov 13:18
· 131 commits to main since this release

2.27.18 (2026-11-18)

Fix

  • fix: look up renamed tasks by their new name in get_task (#5928)

get_task warned that a name in _TASK_RENAMES had been renamed, but kept
looking up the old name, so it raised a KeyError instead of returning
the task. For example get_task("PersianTextTone") warned about the
rename to SynPerTextToneClassification and then raised "Did you mean:
'PersianTextEmotion'?". get_tasks(tasks=[...]) calls get_task, so it
failed the same way.

Use the new name for the lookup after the warning, as get_model_meta
already does for _MODEL_RENAMES.

Fixes #5927

Signed-off-by: Bahaa Mattar <bahaa.kmattar@gmail.com> (9063aa9)