mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-19 14:24:45 +08:00
fix: address review - add missing whitespace patterns and narrow error matching
This commit is contained in:
@@ -6071,7 +6071,7 @@ func (s *GatewayService) isThinkingBlockSignatureError(respBody []byte) bool {
|
||||
// 例如: "all messages must have non-empty content"
|
||||
// "messages: text content blocks must be non-empty"
|
||||
if strings.Contains(msg, "non-empty content") || strings.Contains(msg, "empty content") ||
|
||||
strings.Contains(msg, "must be non-empty") {
|
||||
strings.Contains(msg, "content blocks must be non-empty") {
|
||||
logger.LegacyPrintf("service.gateway", "[SignatureCheck] Detected empty content error")
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user