Skip to content

Commit bb5375b

Browse files
fix(model-core): fix duplicate DeepSeek declarations and broken exports
Restored the original model-family-detectors.ts from upstream (which had isGlmModel and isGeminiModel that were accidentally deleted). Added DeepSeek V4 functions correctly after isMiniMaxModel. Fixed TS error in deepseek-v4.ts: buildTaskManagementSection takes 1 argument (useTaskSystem boolean), not 2.
1 parent c3de724 commit bb5375b

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

packages/model-core/src/model-family-detectors.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export function isMiniMaxModel(model: string): boolean {
7575
const modelName = extractModelName(model).toLowerCase()
7676
return modelName.includes("minimax")
7777
}
78-
7978
export function isDeepSeekV4Model(model: string): boolean {
8079
const modelName = extractModelName(model).toLowerCase().replaceAll("_", "-").replaceAll(".", "-")
8180
return modelName.includes("deepseek") && /v[_-]?4/.test(modelName)
@@ -89,18 +88,6 @@ export function isDeepSeekV4FlashModel(model: string): boolean {
8988
return isDeepSeekV4Model(model) && extractModelName(model).toLowerCase().includes("flash")
9089
}
9190

92-
export function isDeepSeekV4Model(model: string): boolean {
93-
const modelName = extractModelName(model).toLowerCase().replaceAll("_", "-").replaceAll(".", "-")
94-
return modelName.includes("deepseek") && /v[_-]?4/.test(modelName)
95-
}
96-
97-
export function isDeepSeekV4ProModel(model: string): boolean {
98-
return isDeepSeekV4Model(model) && extractModelName(model).toLowerCase().includes("pro")
99-
}
100-
101-
export function isDeepSeekV4FlashModel(model: string): boolean {
102-
return isDeepSeekV4Model(model) && extractModelName(model).toLowerCase().includes("flash")
103-
}
10491

10592
export function isGlmModel(model: string): boolean {
10693
const modelName = extractModelName(model).toLowerCase()

packages/omo-opencode/src/agents/sisyphus/deepseek-v4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function buildDeepSeekV4SisyphusPrompt(
4848
useTaskSystem = false,
4949
): string {
5050
const toolsDisplay = tools.map((t) => t.name).join(", ")
51-
const taskSection = buildTaskManagementSection(agents, useTaskSystem)
51+
const taskSection = buildTaskManagementSection(useTaskSystem)
5252
const isPro = model.toLowerCase().includes("pro")
5353

5454
return `\n<identity>

0 commit comments

Comments
 (0)