mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-07 00:51:34 +00:00
fix: add anthropic transform for deepseek
This commit is contained in:
parent
f8e939d96f
commit
56fd16e5c0
1 changed files with 21 additions and 0 deletions
|
|
@ -594,6 +594,27 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
|
|||
}
|
||||
}
|
||||
|
||||
if (model.api.id.includes("deepseek")) {
|
||||
return {
|
||||
high: {
|
||||
thinking: {
|
||||
type: "enabled",
|
||||
},
|
||||
output_config: {
|
||||
effort: "max",
|
||||
},
|
||||
},
|
||||
max: {
|
||||
thinking: {
|
||||
type: "enabled",
|
||||
},
|
||||
output_config: {
|
||||
effort: "max",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if (adaptiveEfforts) {
|
||||
return Object.fromEntries(
|
||||
adaptiveEfforts.map((effort) => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue