feat: expand DeepSeek Harness compatibility

This commit is contained in:
lofyer
2026-08-14 12:38:01 +08:00
parent 36e05d45fa
commit 45aeecb6dd
32 changed files with 554 additions and 193 deletions
+6 -6
View File
@@ -1,4 +1,5 @@
import { z } from 'zod'
import { isDeepSeekHarnessModelProfile } from './deepseek-harness-compatibility'
const runtimeSelectionProfileIdSchema = z.string().uuid()
@@ -82,12 +83,11 @@ function isDeepSeekHarnessRepairProfileUsable(
) {
return false
}
try {
return new URL(profile.baseUrl).hostname.toLowerCase() ===
'api.deepseek.com'
} catch {
return false
}
return isDeepSeekHarnessModelProfile({
baseUrl: profile.baseUrl,
protocol: profile.protocol,
authentication: profile.authentication
})
}
export function repairChannelRuntimeSelection(