Repository navigation
fix(translator): harden Claude format detection for model validation - #9253
Merged
diegosouzapw merged 2 commits intoAug 4, 2026
Merged
diegosouzapw merged 2 commits into
diegosouzapw merged 2 commits into
Conversation
Co-authored-by: Ervareza Naurian <rianskp644@gmail.com> Inspired-by: decolua/9router#2949
Collaborator
Author
|
Merged via local merge-train on 192.168.0.113 (32 cores) @ train tip Green: Reds, each discriminated against the clean release tip
No red attributable to this PR. |
diegosouzapw
deleted the
fix/port-pr-2949-translator-model-validation-format
branch
August 4, 2026 20:50
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…heaper-inference#9253) * fix(translator): harden Claude format detection for model validation Co-authored-by: Ervareza Naurian <rianskp644@gmail.com> Inspired-by: decolua/9router#2949 * chore(changelog): fragment for cheaper-inference#9253 --------- Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com> Co-authored-by: Ervareza Naurian <rianskp644@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anthropic-versionmetadata as a Claude-format signalAttribution
Thanks to @ervareza for the original implementation.
Changes
detectFormatFromUrlparse relative and absolute URLs safelyanthropic-versiondetection for array and string message contentTest plan
npm run typecheck:corenpm run check:docs-allnpm run check:cyclesnpm run typecheck:noimplicit:core— blocked by existing implicit-any errors inopen-sse/utils/usageTracking.tsandsrc/shared/services/cliRuntime.tsnpm run test:vitest— 28 files / 256 tests passed; 6 MCP suites cannot importjs-tiktokenbecause the localbase64-jsinstallation is empty (the same failure reproduces in the release checkout)npm run check— lint completed; the broad unit run was interrupted after reproducing the same dependency-layout failure plus credential-dependent 401 checks