@@ -28,6 +28,12 @@ const (
28
28
ChatModelO1Preview2024_09_12 ChatModel = "o1-preview-2024-09-12"
29
29
ChatModelO1Mini ChatModel = "o1-mini"
30
30
ChatModelO1Mini2024_09_12 ChatModel = "o1-mini-2024-09-12"
31
+ ChatModelGPT4_1 ChatModel = "gpt-4.1"
32
+ ChatModelGPT4_1_2025_04_14 ChatModel = "gpt-4.1-2025-04-14"
33
+ ChatModelGPT4_1Mini ChatModel = "gpt-4.1-mini"
34
+ ChatModelGPT4_1Mini_2025_04_14 ChatModel = "gpt-4.1-mini-2025-04-14"
35
+ ChatModelGPT4_1Nano ChatModel = "gpt-4.1-nano"
36
+ ChatModelGPT4_1Nano_2025_04_14 ChatModel = "gpt-4.1-nano-2025-04-14"
31
37
ChatModelGPT4o ChatModel = "gpt-4o"
32
38
ChatModelGPT4o2024_11_20 ChatModel = "gpt-4o-2024-11-20"
33
39
ChatModelGPT4o2024_08_06 ChatModel = "gpt-4o-2024-08-06"
@@ -97,6 +103,7 @@ type ComparisonFilter struct {
97
103
98
104
// Returns the unmodified JSON received from the API
99
105
func (r ComparisonFilter ) RawJSON () string { return r .JSON .raw }
106
+
100
107
func (r * ComparisonFilter ) UnmarshalJSON (data []byte ) error {
101
108
return apijson .UnmarshalRoot (data , r )
102
109
}
@@ -200,6 +207,7 @@ type ComparisonFilterParam struct {
200
207
// IsPresent returns true if the field's value is not omitted and not the JSON
201
208
// "null". To check if this field is omitted, use [param.IsOmitted].
202
209
func (f ComparisonFilterParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
210
+
203
211
func (r ComparisonFilterParam ) MarshalJSON () (data []byte , err error ) {
204
212
type shadow ComparisonFilterParam
205
213
return param .MarshalObject (r , (* shadow )(& r ))
@@ -218,6 +226,7 @@ type ComparisonFilterValueUnionParam struct {
218
226
// IsPresent returns true if the field's value is not omitted and not the JSON
219
227
// "null". To check if this field is omitted, use [param.IsOmitted].
220
228
func (u ComparisonFilterValueUnionParam ) IsPresent () bool { return ! param .IsOmitted (u ) && ! u .IsNull () }
229
+
221
230
func (u ComparisonFilterValueUnionParam ) MarshalJSON () ([]byte , error ) {
222
231
return param .MarshalUnion [ComparisonFilterValueUnionParam ](u .OfString , u .OfFloat , u .OfBool )
223
232
}
@@ -254,6 +263,7 @@ type CompoundFilter struct {
254
263
255
264
// Returns the unmodified JSON received from the API
256
265
func (r CompoundFilter ) RawJSON () string { return r .JSON .raw }
266
+
257
267
func (r * CompoundFilter ) UnmarshalJSON (data []byte ) error {
258
268
return apijson .UnmarshalRoot (data , r )
259
269
}
@@ -292,6 +302,7 @@ type CompoundFilterParam struct {
292
302
// IsPresent returns true if the field's value is not omitted and not the JSON
293
303
// "null". To check if this field is omitted, use [param.IsOmitted].
294
304
func (f CompoundFilterParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
305
+
295
306
func (r CompoundFilterParam ) MarshalJSON () (data []byte , err error ) {
296
307
type shadow CompoundFilterParam
297
308
return param .MarshalObject (r , (* shadow )(& r ))
@@ -316,6 +327,7 @@ type ErrorObject struct {
316
327
317
328
// Returns the unmodified JSON received from the API
318
329
func (r ErrorObject ) RawJSON () string { return r .JSON .raw }
330
+
319
331
func (r * ErrorObject ) UnmarshalJSON (data []byte ) error {
320
332
return apijson .UnmarshalRoot (data , r )
321
333
}
@@ -355,6 +367,7 @@ type FunctionDefinition struct {
355
367
356
368
// Returns the unmodified JSON received from the API
357
369
func (r FunctionDefinition ) RawJSON () string { return r .JSON .raw }
370
+
358
371
func (r * FunctionDefinition ) UnmarshalJSON (data []byte ) error {
359
372
return apijson .UnmarshalRoot (data , r )
360
373
}
@@ -396,6 +409,7 @@ type FunctionDefinitionParam struct {
396
409
// IsPresent returns true if the field's value is not omitted and not the JSON
397
410
// "null". To check if this field is omitted, use [param.IsOmitted].
398
411
func (f FunctionDefinitionParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
412
+
399
413
func (r FunctionDefinitionParam ) MarshalJSON () (data []byte , err error ) {
400
414
type shadow FunctionDefinitionParam
401
415
return param .MarshalObject (r , (* shadow )(& r ))
@@ -441,6 +455,7 @@ type Reasoning struct {
441
455
442
456
// Returns the unmodified JSON received from the API
443
457
func (r Reasoning ) RawJSON () string { return r .JSON .raw }
458
+
444
459
func (r * Reasoning ) UnmarshalJSON (data []byte ) error {
445
460
return apijson .UnmarshalRoot (data , r )
446
461
}
@@ -494,6 +509,7 @@ type ReasoningParam struct {
494
509
// IsPresent returns true if the field's value is not omitted and not the JSON
495
510
// "null". To check if this field is omitted, use [param.IsOmitted].
496
511
func (f ReasoningParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
512
+
497
513
func (r ReasoningParam ) MarshalJSON () (data []byte , err error ) {
498
514
type shadow ReasoningParam
499
515
return param .MarshalObject (r , (* shadow )(& r ))
@@ -530,6 +546,7 @@ type ResponseFormatJSONObject struct {
530
546
531
547
// Returns the unmodified JSON received from the API
532
548
func (r ResponseFormatJSONObject ) RawJSON () string { return r .JSON .raw }
549
+
533
550
func (r * ResponseFormatJSONObject ) UnmarshalJSON (data []byte ) error {
534
551
return apijson .UnmarshalRoot (data , r )
535
552
}
@@ -562,6 +579,7 @@ type ResponseFormatJSONObjectParam struct {
562
579
// IsPresent returns true if the field's value is not omitted and not the JSON
563
580
// "null". To check if this field is omitted, use [param.IsOmitted].
564
581
func (f ResponseFormatJSONObjectParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
582
+
565
583
func (r ResponseFormatJSONObjectParam ) MarshalJSON () (data []byte , err error ) {
566
584
type shadow ResponseFormatJSONObjectParam
567
585
return param .MarshalObject (r , (* shadow )(& r ))
@@ -587,6 +605,7 @@ type ResponseFormatJSONSchema struct {
587
605
588
606
// Returns the unmodified JSON received from the API
589
607
func (r ResponseFormatJSONSchema ) RawJSON () string { return r .JSON .raw }
608
+
590
609
func (r * ResponseFormatJSONSchema ) UnmarshalJSON (data []byte ) error {
591
610
return apijson .UnmarshalRoot (data , r )
592
611
}
@@ -632,6 +651,7 @@ type ResponseFormatJSONSchemaJSONSchema struct {
632
651
633
652
// Returns the unmodified JSON received from the API
634
653
func (r ResponseFormatJSONSchemaJSONSchema ) RawJSON () string { return r .JSON .raw }
654
+
635
655
func (r * ResponseFormatJSONSchemaJSONSchema ) UnmarshalJSON (data []byte ) error {
636
656
return apijson .UnmarshalRoot (data , r )
637
657
}
@@ -654,6 +674,7 @@ type ResponseFormatJSONSchemaParam struct {
654
674
// IsPresent returns true if the field's value is not omitted and not the JSON
655
675
// "null". To check if this field is omitted, use [param.IsOmitted].
656
676
func (f ResponseFormatJSONSchemaParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
677
+
657
678
func (r ResponseFormatJSONSchemaParam ) MarshalJSON () (data []byte , err error ) {
658
679
type shadow ResponseFormatJSONSchemaParam
659
680
return param .MarshalObject (r , (* shadow )(& r ))
@@ -686,6 +707,7 @@ type ResponseFormatJSONSchemaJSONSchemaParam struct {
686
707
func (f ResponseFormatJSONSchemaJSONSchemaParam ) IsPresent () bool {
687
708
return ! param .IsOmitted (f ) && ! f .IsNull ()
688
709
}
710
+
689
711
func (r ResponseFormatJSONSchemaJSONSchemaParam ) MarshalJSON () (data []byte , err error ) {
690
712
type shadow ResponseFormatJSONSchemaJSONSchemaParam
691
713
return param .MarshalObject (r , (* shadow )(& r ))
@@ -706,6 +728,7 @@ type ResponseFormatText struct {
706
728
707
729
// Returns the unmodified JSON received from the API
708
730
func (r ResponseFormatText ) RawJSON () string { return r .JSON .raw }
731
+
709
732
func (r * ResponseFormatText ) UnmarshalJSON (data []byte ) error {
710
733
return apijson .UnmarshalRoot (data , r )
711
734
}
@@ -735,6 +758,7 @@ type ResponseFormatTextParam struct {
735
758
// IsPresent returns true if the field's value is not omitted and not the JSON
736
759
// "null". To check if this field is omitted, use [param.IsOmitted].
737
760
func (f ResponseFormatTextParam ) IsPresent () bool { return ! param .IsOmitted (f ) && ! f .IsNull () }
761
+
738
762
func (r ResponseFormatTextParam ) MarshalJSON () (data []byte , err error ) {
739
763
type shadow ResponseFormatTextParam
740
764
return param .MarshalObject (r , (* shadow )(& r ))
0 commit comments