File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1143,21 +1143,23 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
1143
1143
if ( api_url === "https://api.openai.com" ) {
1144
1144
layer . alert ( "官方API你来验证?" , { title : '官方API' } ) ;
1145
1145
}
1146
+ let validFingerprintsCount = Object . values ( fingerprints ) . filter ( value => value !== 'N/A' ) . length ;
1146
1147
let similarityCount = Object . values ( similarity ) . filter ( value => parseFloat ( value ) > 0.6 ) . length ;
1147
1148
let lowSimilarityCount = Object . values ( similarity ) . filter ( value => parseFloat ( value ) < 0.1 ) . length ;
1148
1149
1149
1150
let title = '验证结果' ;
1150
1151
let message = '' ;
1151
- if ( similarityCount >= 3 ) {
1152
- title = '恭喜你,官方API呀 !' ;
1152
+ if ( validFingerprintsCount >= 3 && similarityCount >= 3 ) {
1153
+ title = '恭喜你,大概率是官方API呀 !' ;
1153
1154
message += '<strong>Tips: 这是官方API!</strong>' ;
1154
- } else if ( similarityCount >= 2 ) {
1155
+ } else if ( validFingerprintsCount >= 2 && similarityCount >= 2 ) {
1155
1156
title = '可能是官方API' ;
1156
1157
message += '<strong>Tips: 应该是官方的</strong>' ;
1157
- } else if ( lowSimilarityCount >= 2 ) {
1158
+ } else if ( validFingerprintsCount <= 2 && lowSimilarityCount >= 2 ) {
1158
1159
title = '可能是假的' ;
1159
1160
message += '<strong>Tips: 假的8</strong>' ;
1160
1161
} else {
1162
+ title = '没有系统指纹且回答一致性差,则api大概率是假的' ;
1161
1163
message += '<strong>Tips: 结果不确定,请进一步验证</strong>' ;
1162
1164
}
1163
1165
You can’t perform that action at this time.
0 commit comments