Skip to content

Commit aedeb6f

Browse files
authored
Merge pull request #4 from juzeon/patch-1
模型不一致也支持温度验证与官转验证按钮
2 parents 89b8647 + d77ec57 commit aedeb6f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

index.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,22 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
886886
});
887887

888888
results.inconsistent.forEach(function (r) {
889-
889+
let verifyButtons = `<button class="verify-btn cyan" data-tooltip="校验函数功能是否可用,将发起1次请求" onclick="verifyFunctionCalling('${r.model}')">
890+
函数验证
891+
</button>`
892+
if (r.model.startsWith('gpt-') || r.model.startsWith('claude-')) {
893+
let officialButtonClass = results.awaitOfficialVerification.some(item => item.model === r.model) ? "green" : "yellow";
894+
verifyButtons += `
895+
<button class="verify-btn blue" data-tooltip="低温度参数下预测序列下一个值,将发起4次请求" onclick="verifyTemperature('${r.model}')">
896+
温度验证
897+
</button>
898+
${r.model.startsWith('gpt-') ? `
899+
<button class="verify-btn ${officialButtonClass}" data-tooltip="相同种子参数下校验回复相似性和系统指纹,将发起4次请求" onclick="verifyOfficial('${r.model}')">
900+
官转验证
901+
</button>
902+
` : ''}
903+
`;
904+
}
890905
content += `
891906
<tr>
892907
<td class="td1 td1-no" >模型不一致/映射,tnnd掺假?</td>
@@ -895,9 +910,7 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
895910
</td>
896911
<td class="td3">${r.responseTime.toFixed(2)}</td>
897912
<td class="td4">
898-
<button class="verify-btn cyan" data-tooltip="校验函数功能是否可用,将发起1次请求" onclick="verifyFunctionCalling('${r.model}')">
899-
函数验证
900-
</button>
913+
${verifyButtons}
901914
<br>
902915
${r.returnedModel ? '返回模型: ' + r.returnedModel : '该接口未返回模型名称'}
903916
</td>

0 commit comments

Comments
 (0)