Repository navigation
Commit 83fcfc6
committed
fix(server): price bare Claude names listed only under Bedrock IDs
LiteLLM lists Claude Mythos 5.2 only under Bedrock IDs (anthropic., global.,
us./eu., us-gov., bedrock/us-gov-*/anthropic.), so the alias step, which only
stripped text before the last slash, never created claude-mythos-5-2 and Usage
showed it as Unpriced.
Keys without a slash now also alias by dropping Bedrock's anthropic. prefix.
Only that base ID qualifies: regional and GovCloud IDs carry markups and keep
their own names. The base row ranks as a cloud candidate, so an exact bare row
still wins, a first-party row still beats it, and a disagreeing same-priority
candidate still leaves the alias unpriced.
Fixes #33715
AI-assisted; verified with the tests and tools listed above.1 parent 55af121 commit 83fcfc6
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| |||
0 commit comments