Skip to content

Commit 67354fa

Browse files
committed
官转验证中增加系统指纹的判断
1 parent 58a9206 commit 67354fa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,21 +1143,23 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
11431143
if (api_url === "https://api.openai.com") {
11441144
layer.alert("官方API你来验证?", {title: '官方API'});
11451145
}
1146+
let validFingerprintsCount = Object.values(fingerprints).filter(value => value !== 'N/A').length;
11461147
let similarityCount = Object.values(similarity).filter(value => parseFloat(value) > 0.6).length;
11471148
let lowSimilarityCount = Object.values(similarity).filter(value => parseFloat(value) < 0.1).length;
11481149

11491150
let title = '验证结果';
11501151
let message = '';
1151-
if (similarityCount >= 3) {
1152-
title = '恭喜你,官方API呀!';
1152+
if (validFingerprintsCount >=3 && similarityCount >= 3) {
1153+
title = '恭喜你,大概率是官方API呀!';
11531154
message += '<strong>Tips: 这是官方API!</strong>';
1154-
} else if (similarityCount >= 2) {
1155+
} else if (validFingerprintsCount >= 2 && similarityCount >= 2) {
11551156
title = '可能是官方API';
11561157
message += '<strong>Tips: 应该是官方的</strong>';
1157-
} else if (lowSimilarityCount >= 2) {
1158+
} else if (validFingerprintsCount <= 2 && lowSimilarityCount >= 2) {
11581159
title = '可能是假的';
11591160
message += '<strong>Tips: 假的8</strong>';
11601161
} else {
1162+
title = '没有系统指纹且回答一致性差,则api大概率是假的';
11611163
message += '<strong>Tips: 结果不确定,请进一步验证</strong>';
11621164
}
11631165

0 commit comments

Comments
 (0)