File tree 3 files changed +43
-0
lines changed
3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,24 @@ const ChatModelO1Mini = shared.ChatModelO1Mini
44
44
// Equals "o1-mini-2024-09-12"
45
45
const ChatModelO1Mini2024_09_12 = shared .ChatModelO1Mini2024_09_12
46
46
47
+ // Equals "gpt-4-1"
48
+ const ChatModelGPT4_1 = shared .ChatModelGPT4_1
49
+
50
+ // Equals "gpt-4-1-2025-04-14"
51
+ const ChatModelGPT4_1_2025_04_14 = shared .ChatModelGPT4_1_2025_04_14
52
+
53
+ // Equals "gpt-4-1-mini"
54
+ const ChatModelGPT4_1Mini = shared .ChatModelGPT4_1Mini
55
+
56
+ // Equals "gpt-4-1-mini-2025-04-14"
57
+ const ChatModelGPT4_1Mini_2025_04_14 = shared .ChatModelGPT4_1Mini_2025_04_14
58
+
59
+ // Equals "gpt-4-1-nano"
60
+ const ChatModelGPT4_1Nano = shared .ChatModelGPT4_1Nano
61
+
62
+ // Equals "gpt-4-1-nano-2025-04-14"
63
+ const ChatModelGPT4_1Nano_2025_04_14 = shared .ChatModelGPT4_1Nano_2025_04_14
64
+
47
65
// Equals "gpt-4o"
48
66
const ChatModelGPT4o = shared .ChatModelGPT4o
49
67
Original file line number Diff line number Diff line change @@ -44,6 +44,24 @@ const ChatModelO1Mini = shared.ChatModelO1Mini
44
44
// Equals "o1-mini-2024-09-12"
45
45
const ChatModelO1Mini2024_09_12 = shared .ChatModelO1Mini2024_09_12
46
46
47
+ // Equals "gpt-4-1"
48
+ const ChatModelGPT4_1 = shared .ChatModelGPT4_1
49
+
50
+ // Equals "gpt-4-1-2025-04-14"
51
+ const ChatModelGPT4_1_2025_04_14 = shared .ChatModelGPT4_1_2025_04_14
52
+
53
+ // Equals "gpt-4-1-mini"
54
+ const ChatModelGPT4_1Mini = shared .ChatModelGPT4_1Mini
55
+
56
+ // Equals "gpt-4-1-mini-2025-04-14"
57
+ const ChatModelGPT4_1Mini_2025_04_14 = shared .ChatModelGPT4_1Mini_2025_04_14
58
+
59
+ // Equals "gpt-4-1-nano"
60
+ const ChatModelGPT4_1Nano = shared .ChatModelGPT4_1Nano
61
+
62
+ // Equals "gpt-4-1-nano-2025-04-14"
63
+ const ChatModelGPT4_1Nano_2025_04_14 = shared .ChatModelGPT4_1Nano_2025_04_14
64
+
47
65
// Equals "gpt-4o"
48
66
const ChatModelGPT4o = shared .ChatModelGPT4o
49
67
Original file line number Diff line number Diff line change @@ -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"
@@ -686,6 +692,7 @@ type ResponseFormatJSONSchemaJSONSchemaParam struct {
686
692
func (f ResponseFormatJSONSchemaJSONSchemaParam ) IsPresent () bool {
687
693
return ! param .IsOmitted (f ) && ! f .IsNull ()
688
694
}
695
+
689
696
func (r ResponseFormatJSONSchemaJSONSchemaParam ) MarshalJSON () (data []byte , err error ) {
690
697
type shadow ResponseFormatJSONSchemaJSONSchemaParam
691
698
return param .MarshalObject (r , (* shadow )(& r ))
You can’t perform that action at this time.
0 commit comments