File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -886,7 +886,22 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
886
886
} ) ;
887
887
888
888
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
+ }
890
905
content += `
891
906
<tr>
892
907
<td class="td1 td1-no" >模型不一致/映射,tnnd掺假?</td>
@@ -895,9 +910,7 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
895
910
</td>
896
911
<td class="td3">${ r . responseTime . toFixed ( 2 ) } </td>
897
912
<td class="td4">
898
- <button class="verify-btn cyan" data-tooltip="校验函数功能是否可用,将发起1次请求" onclick="verifyFunctionCalling('${ r . model } ')">
899
- 函数验证
900
- </button>
913
+ ${ verifyButtons }
901
914
<br>
902
915
${ r . returnedModel ? '返回模型: ' + r . returnedModel : '该接口未返回模型名称' }
903
916
</td>
You can’t perform that action at this time.
0 commit comments