Skip to content

Make caption refusal markers configurable - #74

Merged
bghira merged 1 commit into
mainfrom
feat/configurable-refusal-markers
Sep 8, 2026
Merged

bghira merged 1 commit into
mainfrom
feat/configurable-refusal-markers

Conversation

@bghira

@bghira bghira commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Replace the OpenAI-compatible worker's fixed refusal matching with configurable markers.

  • inference.refusal_markers sets the shared job-level list
  • openai_compatible.refusal_markers provides a worker-local override
  • an empty list disables text refusal matching
  • markers are validated, normalized, deduplicated, and reloadable
  • literal image text such as “I can't stay at home” can be accepted without weakening unrelated jobs

Validation:

  • 494 tests passed
  • 100% changed-line coverage

@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/caption_flow/utils/vllm_config.py 93.33% <ø> (ø)
src/caption_flow/workers/openai_compatible.py 90.86% <100.00%> (+0.33%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bghira
bghira merged commit e8f24da into main Sep 8, 2026
4 checks passed
@bghira
bghira deleted the feat/configurable-refusal-markers branch September 8, 2026 19:48
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.

1 participant