mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: cc提示词检测暂时排除haiku模型2
This commit is contained in:
@@ -52,10 +52,14 @@ class ClaudeCodeValidator {
|
||||
}
|
||||
|
||||
const model = typeof body.model === 'string' ? body.model : null
|
||||
if (!model || model.startsWith('claude-3-5-haiku')) {
|
||||
if (!model) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (model.startsWith('claude-3-5-haiku')) {
|
||||
return true
|
||||
}
|
||||
|
||||
const systemEntries = Array.isArray(body.system) ? body.system : []
|
||||
const system0Text =
|
||||
systemEntries.length > 0 && typeof systemEntries[0]?.text === 'string'
|
||||
|
||||
Reference in New Issue
Block a user