Skip to content

Commit bca0afc

Browse files
committed
Add new OpenAI models
1 parent 760490c commit bca0afc

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

lib.php

+30-12
Original file line numberDiff line numberDiff line change
@@ -85,28 +85,46 @@ function fetch_assistants_array($block_id = null) {
8585
function get_models() {
8686
return [
8787
"models" => [
88-
'gpt-4' => 'gpt-4',
88+
'gpt-4o-2024-05-13' => 'gpt-4o-2024-05-13',
89+
'gpt-4o' => 'gpt-4o',
90+
'gpt-4-turbo-preview' => 'gpt-4-turbo-preview',
91+
'gpt-4-turbo-2024-04-09' => 'gpt-4-turbo-2024-04-09',
92+
'gpt-4-turbo' => 'gpt-4-turbo',
93+
'gpt-4-32k-0314' => 'gpt-4-32k-0314',
94+
'gpt-4-1106-vision-preview' => 'gpt-4-1106-vision-preview',
8995
'gpt-4-1106-preview' => 'gpt-4-1106-preview',
9096
'gpt-4-0613' => 'gpt-4-0613',
9197
'gpt-4-0314' => 'gpt-4-0314',
92-
'gpt-3.5-turbo' => 'gpt-3.5-turbo',
98+
'gpt-4-0125-preview' => 'gpt-4-0125-preview',
99+
'gpt-4' => 'gpt-4',
93100
'gpt-3.5-turbo-16k-0613' => 'gpt-3.5-turbo-16k-0613',
94101
'gpt-3.5-turbo-16k' => 'gpt-3.5-turbo-16k',
95102
'gpt-3.5-turbo-1106' => 'gpt-3.5-turbo-1106',
96103
'gpt-3.5-turbo-0613' => 'gpt-3.5-turbo-0613',
97104
'gpt-3.5-turbo-0301' => 'gpt-3.5-turbo-0301',
105+
'gpt-3.5-turbo-0125' => 'gpt-3.5-turbo-0125',
106+
'gpt-3.5-turbo' => 'gpt-3.5-turbo'
98107
],
99108
"types" => [
100-
'gpt-4' => 'chat',
101-
'gpt-4-1106-preview' => 'chat',
102-
'gpt-4-0613' => 'chat',
103-
'gpt-4-0314' => 'chat',
104-
'gpt-3.5-turbo' => 'chat',
105-
'gpt-3.5-turbo-16k-0613' => 'chat',
106-
'gpt-3.5-turbo-16k' => 'chat',
107-
'gpt-3.5-turbo-1106' => 'chat',
108-
'gpt-3.5-turbo-0613' => 'chat',
109-
'gpt-3.5-turbo-0301' => 'chat',
109+
'gpt-4o-2024-05-13' => 'chat',
110+
'gpt-4o' => 'chat',
111+
'gpt-4-turbo-preview' => 'chat',
112+
'gpt-4-turbo-2024-04-09' => 'chat',
113+
'gpt-4-turbo' => 'chat',
114+
'gpt-4-32k-0314' => 'chat',
115+
'gpt-4-1106-vision-preview' => 'chat',
116+
'gpt-4-1106-preview' => 'chat',
117+
'gpt-4-0613' => 'chat',
118+
'gpt-4-0314' => 'chat',
119+
'gpt-4-0125-preview' => 'chat',
120+
'gpt-4' => 'chat',
121+
'gpt-3.5-turbo-16k-0613' => 'chat',
122+
'gpt-3.5-turbo-16k' => 'chat',
123+
'gpt-3.5-turbo-1106' => 'chat',
124+
'gpt-3.5-turbo-0613' => 'chat',
125+
'gpt-3.5-turbo-0301' => 'chat',
126+
'gpt-3.5-turbo-0125' => 'chat',
127+
'gpt-3.5-turbo' => 'chat'
110128
]
111129
];
112130
}

0 commit comments

Comments
 (0)