Skip to content

A model card's Test button tests only that card - #1447

Merged
WaylandYang merged 3 commits into
deeplethe:devfrom
0xvectr:fix/1424-test-one-model-card
Oct 27, 2026
Merged

WaylandYang merged 3 commits into
deeplethe:devfrom
0xvectr:fix/1424-test-one-model-card

Conversation

@0xvectr

@0xvectr 0xvectr commented Oct 26, 2026

Copy link
Copy Markdown

The model settings test endpoint now takes ?card= and the page sends the card that was clicked, so pressing Test on one card no longer runs all four probes. A request without card still tests all four.

Closes #1424

Signed-off-by: 0xvectr <57480598+0xvectr@users.noreply.github.com>

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome, and thanks for picking this up! The backend is exactly what #1424 asked for: ?card= is validated, only that card is probed, and a call without it still tests all four. One thing on the page: the Save buttons (and field edits) still call resetTests(), so saving the OCR card clears a fresh result on the chat card. Could each save/edit reset only its own card's test (chat + embed for presets)? A Settings.test.ts case for that would be welcome. Small extras: mention card in the doc comment on test, and please retitle to a sentence, e.g. your commit headline "A model card's Test button tests only that card". Then it's good to merge.

Signed-off-by: 0xvectr <57480598+0xvectr@users.noreply.github.com>
@0xvectr 0xvectr changed the title fix(settings): test only the model card that was clicked A model card's Test button tests only that card Oct 26, 2026
@0xvectr

0xvectr commented Oct 26, 2026

Copy link
Copy Markdown
Author

Done: saving or editing a card, or switching the OCR provider, now resets only that card's test (chat and embed for presets), with a cardsOf case in Settings.test.ts. test's doc comment now covers card, and the PR is retitled.

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @0xvectr, that's exactly it: a save or an edit now expires only its own card's test, a preset expires chat and embed, and cardsOf is covered. Approving and merging.

@WaylandYang
WaylandYang merged commit 475bb67 into deeplethe:dev Oct 27, 2026
6 checks passed
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.

2 participants