Skip to content

Commit 7901ebe

Browse files
authored
more unsupported gpt-5 params (#5140)
1 parent 44a4a78 commit 7901ebe

File tree

3 files changed

+177
-102
lines changed

3 files changed

+177
-102
lines changed

packages/__tests__/cost/__snapshots__/registrySnapshots.test.ts.snap

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,11 +3412,8 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
34123412
"maxTokens": 32768,
34133413
"modelId": "pa/gpt-5-chat-latest",
34143414
"parameters": [
3415-
"frequency_penalty",
3416-
"max_tokens",
3417-
"presence_penalty",
3415+
"max_completion_tokens",
34183416
"stop",
3419-
"top_p",
34203417
],
34213418
"provider": "helicone",
34223419
"ptbEnabled": true,
@@ -3430,15 +3427,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
34303427
"maxTokens": 16384,
34313428
"modelId": "gpt-5-chat-latest",
34323429
"parameters": [
3433-
"frequency_penalty",
34343430
"max_completion_tokens",
3435-
"presence_penalty",
34363431
"response_format",
34373432
"seed",
34383433
"stop",
34393434
"tool_choice",
34403435
"tools",
3441-
"top_p",
34423436
"verbosity",
34433437
],
34443438
"provider": "openai",
@@ -3453,15 +3447,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
34533447
"maxTokens": 16384,
34543448
"modelId": "openai/gpt-5-chat",
34553449
"parameters": [
3456-
"frequency_penalty",
34573450
"max_completion_tokens",
3458-
"presence_penalty",
34593451
"response_format",
34603452
"seed",
34613453
"stop",
34623454
"tool_choice",
34633455
"tools",
3464-
"top_p",
34653456
],
34663457
"provider": "openrouter",
34673458
"ptbEnabled": true,
@@ -3475,9 +3466,8 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
34753466
"maxTokens": 32768,
34763467
"modelId": "pa/gpt-5-codex",
34773468
"parameters": [
3478-
"max_tokens",
3469+
"max_completion_tokens",
34793470
"stop",
3480-
"top_p",
34813471
],
34823472
"provider": "helicone",
34833473
"ptbEnabled": true,
@@ -3491,7 +3481,7 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
34913481
"maxTokens": 128000,
34923482
"modelId": "gpt-5-mini",
34933483
"parameters": [
3494-
"max_tokens",
3484+
"max_completion_tokens",
34953485
"response_format",
34963486
"seed",
34973487
"structured_outputs",
@@ -3510,11 +3500,8 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35103500
"maxTokens": 16384,
35113501
"modelId": "pa/gpt-5-mini",
35123502
"parameters": [
3513-
"frequency_penalty",
3514-
"max_tokens",
3515-
"presence_penalty",
3503+
"max_completion_tokens",
35163504
"stop",
3517-
"top_p",
35183505
],
35193506
"provider": "helicone",
35203507
"ptbEnabled": true,
@@ -3528,15 +3515,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35283515
"maxTokens": 128000,
35293516
"modelId": "gpt-5-mini",
35303517
"parameters": [
3531-
"frequency_penalty",
35323518
"max_completion_tokens",
3533-
"presence_penalty",
35343519
"response_format",
35353520
"seed",
35363521
"stop",
35373522
"tool_choice",
35383523
"tools",
3539-
"top_p",
35403524
"verbosity",
35413525
],
35423526
"provider": "openai",
@@ -3551,15 +3535,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35513535
"maxTokens": 128000,
35523536
"modelId": "openai/gpt-5-mini",
35533537
"parameters": [
3554-
"frequency_penalty",
35553538
"max_completion_tokens",
3556-
"presence_penalty",
35573539
"response_format",
35583540
"seed",
35593541
"stop",
35603542
"tool_choice",
35613543
"tools",
3562-
"top_p",
35633544
],
35643545
"provider": "openrouter",
35653546
"ptbEnabled": true,
@@ -3573,9 +3554,7 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35733554
"maxTokens": 8192,
35743555
"modelId": "pa/gpt-5-nano",
35753556
"parameters": [
3576-
"max_tokens",
3577-
"stop",
3578-
"top_p",
3557+
"max_completion_tokens",
35793558
],
35803559
"provider": "helicone",
35813560
"ptbEnabled": true,
@@ -3589,15 +3568,11 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35893568
"maxTokens": 128000,
35903569
"modelId": "gpt-5-nano",
35913570
"parameters": [
3592-
"frequency_penalty",
35933571
"max_completion_tokens",
3594-
"presence_penalty",
35953572
"response_format",
35963573
"seed",
3597-
"stop",
35983574
"tool_choice",
35993575
"tools",
3600-
"top_p",
36013576
"verbosity",
36023577
],
36033578
"provider": "openai",
@@ -3612,15 +3587,11 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
36123587
"maxTokens": 128000,
36133588
"modelId": "openai/gpt-5-nano",
36143589
"parameters": [
3615-
"frequency_penalty",
36163590
"max_completion_tokens",
3617-
"presence_penalty",
36183591
"response_format",
36193592
"seed",
3620-
"stop",
36213593
"tool_choice",
36223594
"tools",
3623-
"top_p",
36243595
],
36253596
"provider": "openrouter",
36263597
"ptbEnabled": true,
@@ -3634,11 +3605,8 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
36343605
"maxTokens": 32768,
36353606
"modelId": "pa/gpt-5-pro",
36363607
"parameters": [
3637-
"frequency_penalty",
3638-
"max_tokens",
3639-
"presence_penalty",
3608+
"max_completion_tokens",
36403609
"stop",
3641-
"top_p",
36423610
],
36433611
"provider": "helicone",
36443612
"ptbEnabled": true,
@@ -3653,7 +3621,6 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
36533621
"modelId": "gpt-5",
36543622
"parameters": [
36553623
"max_completion_tokens",
3656-
"max_tokens",
36573624
"response_format",
36583625
"seed",
36593626
"tool_choice",
@@ -3671,11 +3638,8 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
36713638
"maxTokens": 32768,
36723639
"modelId": "pa/gpt-5",
36733640
"parameters": [
3674-
"frequency_penalty",
3675-
"max_tokens",
3676-
"presence_penalty",
3641+
"max_completion_tokens",
36773642
"stop",
3678-
"top_p",
36793643
],
36803644
"provider": "helicone",
36813645
"ptbEnabled": true,
@@ -3689,15 +3653,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
36893653
"maxTokens": 128000,
36903654
"modelId": "gpt-5",
36913655
"parameters": [
3692-
"frequency_penalty",
36933656
"max_completion_tokens",
3694-
"presence_penalty",
36953657
"response_format",
36963658
"seed",
36973659
"stop",
36983660
"tool_choice",
36993661
"tools",
3700-
"top_p",
37013662
"verbosity",
37023663
],
37033664
"provider": "openai",
@@ -3712,15 +3673,12 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
37123673
"maxTokens": 128000,
37133674
"modelId": "openai/gpt-5",
37143675
"parameters": [
3715-
"frequency_penalty",
37163676
"max_completion_tokens",
3717-
"presence_penalty",
37183677
"response_format",
37193678
"seed",
37203679
"stop",
37213680
"tool_choice",
37223681
"tools",
3723-
"top_p",
37243682
],
37253683
"provider": "openrouter",
37263684
"ptbEnabled": true,

0 commit comments

Comments
 (0)