Repository navigation
Commit d66cefe
committed
fix(core): preserve Bedrock ARN and DeepSeek model ids
resolveModelID() was double-prefixing two cases:
- Full Bedrock ARNs (`arn:...`) got a region prefix appended, which
Bedrock rejects.
- Any model id containing "deepseek" (not just the R1 models that
need cross-region inference) got prefixed with the region.
Add an early return for ARN ids and narrow the DeepSeek match to
"deepseek.r1".
Ported from upstream commit ac1758c ("fix: preserve Bedrock
DeepSeek model ids (anomalyco#34441)"). Isolated to Bedrock model id
resolution; no effect on other providers or on Batuta/Breniac/desktop.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AGh7o4NA8jUjwakDzZo12e1 parent 00adf08 commit d66cefe
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments