fix: cc提示词检测暂时排除haiku模型2

This commit is contained in:
shaw
2025-09-25 14:22:36 +08:00
parent 749ebf0a82
commit 69cf8646e9

View File

@@ -52,10 +52,14 @@ class ClaudeCodeValidator {
} }
const model = typeof body.model === 'string' ? body.model : null const model = typeof body.model === 'string' ? body.model : null
if (!model || model.startsWith('claude-3-5-haiku')) { if (!model) {
return false return false
} }
if (model.startsWith('claude-3-5-haiku')) {
return true
}
const systemEntries = Array.isArray(body.system) ? body.system : [] const systemEntries = Array.isArray(body.system) ? body.system : []
const system0Text = const system0Text =
systemEntries.length > 0 && typeof systemEntries[0]?.text === 'string' systemEntries.length > 0 && typeof systemEntries[0]?.text === 'string'