mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 03:15:11 +00:00
fix: add anthropic transform for deepseek
This commit is contained in:
@@ -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) => [
|
||||
|
||||
Reference in New Issue
Block a user