@@ -736,7 +736,7 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
736
736
model : model ,
737
737
messages : [ { role : "user" , content : "写一个10个字的冷笑话" } ]
738
738
} ;
739
- if ( model . startsWith ( ' gpt-' ) ) {
739
+ if ( / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( model ) ) {
740
740
requestBody . seed = 331 ;
741
741
}
742
742
const response = await fetch ( `${ apiUrl } /v1/chat/completions` , {
@@ -757,7 +757,7 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
757
757
const returnedModel = data . model ;
758
758
if ( returnedModel === model ) {
759
759
results . valid . push ( { model, responseTime} ) ;
760
- if ( model . startsWith ( ' gpt-' ) ) {
760
+ if ( / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( model ) ) {
761
761
if ( data . system_fingerprint ) {
762
762
results . awaitOfficialVerification . push ( {
763
763
model,
@@ -869,13 +869,13 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
869
869
函数验证
870
870
</button>
871
871
` ;
872
- if ( r . model . startsWith ( ' gpt-' ) || r . model . startsWith ( 'claude-' ) ) {
872
+ if ( / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( r . model ) || r . model . startsWith ( 'claude-' ) ) {
873
873
let officialButtonClass = results . awaitOfficialVerification . some ( item => item . model === r . model ) ? "green" : "yellow" ;
874
874
verifyButtons += `
875
875
<button class="verify-btn blue" data-tooltip="低温度参数下预测序列下一个值,将发起4次请求" onclick="verifyTemperature('${ r . model } ')">
876
876
温度验证
877
877
</button>
878
- ${ r . model . startsWith ( ' gpt-' ) ? `
878
+ ${ / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( r . model ) ? `
879
879
<button class="verify-btn ${ officialButtonClass } " data-tooltip="相同种子参数下校验回复相似性和系统指纹,将发起4次请求" onclick="verifyOfficial('${ r . model } ')">
880
880
官转验证
881
881
</button>
@@ -889,13 +889,13 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
889
889
let verifyButtons = `<button class="verify-btn cyan" data-tooltip="校验函数功能是否可用,将发起1次请求" onclick="verifyFunctionCalling('${ r . model } ')">
890
890
函数验证
891
891
</button>`
892
- if ( r . model . startsWith ( ' gpt-' ) || r . model . startsWith ( 'claude-' ) ) {
892
+ if ( / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( r . model ) || r . model . startsWith ( 'claude-' ) ) {
893
893
let officialButtonClass = results . awaitOfficialVerification . some ( item => item . model === r . model ) ? "green" : "yellow" ;
894
894
verifyButtons += `
895
895
<button class="verify-btn blue" data-tooltip="低温度参数下预测序列下一个值,将发起4次请求" onclick="verifyTemperature('${ r . model } ')">
896
896
温度验证
897
897
</button>
898
- ${ r . model . startsWith ( ' gpt-' ) ? `
898
+ ${ / ^ ( g p t - | c h a t g p t - | o 1 - ) / . test ( r . model ) ? `
899
899
<button class="verify-btn ${ officialButtonClass } " data-tooltip="相同种子参数下校验回复相似性和系统指纹,将发起4次请求" onclick="verifyOfficial('${ r . model } ')">
900
900
官转验证
901
901
</button>
0 commit comments