Skip to content

bench: honor case-insensitive explicit Authorization in probes - #475

Open
EmilienIT wants to merge 2 commits into
syv-ai:mainfrom
EmilienIT:fix/bench-probe-header-case
Open

EmilienIT wants to merge 2 commits into
syv-ai:mainfrom
EmilienIT:fix/bench-probe-header-case

Conversation

@EmilienIT

@EmilienIT EmilienIT commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

With OPENAI_API_KEY set and an explicit lower-case --header authorization=Bearer ..., generation uses the explicit key but the tokenizer/alignment and metrics probes can send the environment key instead. Their case-sensitive dict.setdefault("Authorization", ...) creates two spellings; aiohttp normalizes them and the later environment value wins. This causes 401s, skipped alignment and missing metrics against a server expecting the explicit key.

Use one probe-header helper that checks Authorization case-insensitively before adding the environment fallback. Preserve the caller's dictionary and other headers. Apply it to alignment and both speculative/diffusion metric scrapes.

Validation on pinned vLLM 0.33.0:

  • Native Linux CPU regression executes the actual probe functions against a local HTTP stub. Before: the lower/mixed-case subcases fail. After: all five methods pass, covering all three probes, canonical/lower/mixed casing, environment fallback, no-key operation, caller dictionary preservation and existing failure return contracts.
  • All 65 series patches plus four KVarN patches apply to pristine v0.33.0 with fuzz 0; repeated KVarN apply is a no-op. The original probe patch reverses exactly, as required by the install verifier. Patch index, pin-bump and graded checks pass.
  • Register the regression in the existing Docker build gate and bench inventory. No GPU/model inference is involved.

The [qwen38] bench-probe-errors source topic was exported with scripts/export-patch.sh, and PATCHES.md regenerated. Generated hunks were not hand-edited.

Current-head CI (18d22dcd): all seven checks pass, including the Docker build/install verifier and patch-integrity gates.

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