Skip to content

Let the model card workflow delete a card - #97

Merged
nojibe merged 1 commit into
mainfrom
claude/delete-model-card
Oct 1, 2026
Merged

nojibe merged 1 commit into
mainfrom
claude/delete-model-card

Conversation

@nojibe

@nojibe nojibe commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The delete-model-card command only ran from the CLI, which needs the storage keys locally. This lets the server run it, so a card can be taken down from GitHub.

Changes

  • POST /api/internal/generate-model-card accepts delete: true and runs actionDeleteModelCard(pattern, { force: true }) instead of generating. Auth and pattern validation are unchanged.
  • The Generate Model Card workflow gets a delete checkbox (default off).
  • actionDeleteModelCard is now exported. Its behaviour is unchanged: it removes live/models/cards/<pattern>.json and the local copy.

Test plan

  • Route tests: 8 pass, including a new one checking that delete: true calls the delete command and not the generator.
  • Full suite: 1171 passed, 2 skipped. tsc --noEmit is clean.
  • After merge: run the workflow with pattern=apertus-v1.5-70b and delete checked, then confirm /cards/apertus-v1.5-70b returns 404.

Risks

The endpoint is auth-gated as before. Deleting a card only removes its JSON, and running the workflow without delete regenerates it.

🤖 Generated with Claude Code

https://claude.ai/code/session_015roAwvpcszBvjX1Ce5NFuj


Generated by Claude Code

The delete-model-card command only ran from the CLI, which needs the
storage keys. The card endpoint now takes `delete: true` to run it on the
server, and the Generate Model Card workflow gets a matching checkbox, so a
card can be taken down without local credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015roAwvpcszBvjX1Ce5NFuj

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@railway-app
railway-app Bot temporarily deployed to weval / app-pr-97 October 1, 2026 14:48 Destroyed
@railway-app

railway-app Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🚅 Deployed to the app-pr-97 environment in weval

Service Status Web Updated
weval-app 🕒 Building (View Logs) Web Oct 1, 2026 at 2:48 pm UTC

@nojibe
nojibe merged commit c3c4e74 into main Oct 1, 2026
1 of 2 checks passed

This branch was successfully deployed

No deployments
weval / app-pr-97 — 4dd9d974 Deployed Oct 1, 2026 by railway-app[bot]
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