Skip to content

Conversation

@mart-r
Copy link
Collaborator

@mart-r mart-r commented Jan 14, 2026

As of MedCAT v2.5 the model card defines new keys:

        'Pipeline Description': {"core": dict[str, {"name": str, "provider": str}], "addons": list[{"name": str, "provider": str}]},
        'Required Plugins': list[{"name": str, "provides": list[tuple[str, str]], "author": str | None, "url": str | None}]

MedCAT-den requires the ModelCard type in its ModelInfo model creating a strict dependence on the format. However, older models (and back ends runnning older versions of MedCAT) won't have these fields. So the model verification tends to fail.

This PR adds a field validator that adds empty placeholders for these new fields (if they're missing) when creating the model.

@tomolopolis
Copy link
Member

Copy link
Member

@tomolopolis tomolopolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mart-r mart-r merged commit d92df29 into main Jan 14, 2026
10 checks passed
@mart-r mart-r deleted the fix/medcat-den/CU-869bt0mb4-fix-rigid-model-card-format branch January 14, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants