Skip to content

strip anthropic prefixes from models client-side - #480

Merged
lilly-luo merged 4 commits into
mainfrom
lilly/strip-anthropic-headers
Sep 3, 2026
Merged

strip anthropic prefixes from models client-side #480
lilly-luo merged 4 commits into
mainfrom
lilly/strip-anthropic-headers

Conversation

@lilly-luo

@lilly-luo lilly-luo commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

we need to add an anthropic-aigw-(8char hash)- prefix to non-claude model ids so they appear in the anthropic model picker. the problem is that these ids don't get cleaned up properly when they get sent to the smart router so the smart router doesnt recognize say glm-5-3-flash as a legit model.

this PR cleans up the prefix client-side. i'm going to add this clean up server-side in the router, but this is until the server-side change lands.

before - routes to sonnet because it can't recognize the oss models
Screenshot 2026-09-03 at 2 18 10 PM

after - routes to glm-5-3-flash because it's a recognized model
Screenshot 2026-09-03 at 2 16 57 PM

@lilly-luo
lilly-luo requested a review from andy-xu-db September 3, 2026 18:18
@lilly-luo
lilly-luo merged commit 6f20220 into main Sep 3, 2026
2 checks passed
@lilly-luo
lilly-luo deleted the lilly/strip-anthropic-headers branch September 3, 2026 18:49
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