Commit e0b3ee6
committed
fix: extend isDeepSeekR1 guard to cover Bedrock-hosted R1 via family field
The previous guard checked providerID === 'deepseek' and api.id containing
'reasoner', which only matched the direct DeepSeek API. Bedrock-hosted R1 has
providerID 'amazon-bedrock' and api.id 'deepseek.r1-v1:0' — neither condition
fired, so tools were still being sent to Bedrock R1.
Broaden the guard to use the provider-agnostic family field ('deepseek-thinking')
which is set for all DeepSeek reasoning variants regardless of hosting provider.
Fall back to api.id substring matching ('deepseek.r1') as an additional safety net
for cases where family may be absent.1 parent 7dc3633 commit e0b3ee6
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | | - | |
203 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
0 commit comments