Skip to content

Commit 5345a7e

Browse files
S SULTAN CHANDNAclaygriffiths
authored andcommitted
Added gpt-4-1106-preview as an available model for the Chat Completions endpoint.
1 parent e2b3774 commit 5345a7e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

class-gwiz-gf-openai.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,18 +299,21 @@ public function get_openai_models() {
299299
),
300300
),
301301
'chat/completions' => array(
302-
'gpt-3.5-turbo' => array(
302+
'gpt-3.5-turbo' => array(
303303
'description' => __( 'The same model used by <a href="https://chat.openai.com" target="_blank">ChatGPT</a>.', 'gravityforms-openai' ),
304304
),
305-
'gpt-3.5-turbo-16k' => array(
305+
'gpt-3.5-turbo-16k' => array(
306306
'description' => __( 'Same capabilities as the standard gpt-3.5-turbo model but with 4x the context length.', 'gravityforms-openai' ),
307307
),
308-
'gpt-4' => array(
308+
'gpt-4' => array(
309309
'description' => __( 'More capable than any GPT-3.5 model, able to do more complex tasks, and optimized for chat. Will be updated with the latest model iteration.', 'gravityforms-openai' ),
310310
),
311-
'gpt-4-32k' => array(
311+
'gpt-4-32k' => array(
312312
'description' => __( 'Same capabilities as the base gpt-4 mode but with 4x the context length. Will be updated with the latest model iteration.', 'gravityforms-openai' ),
313313
),
314+
'gpt-4-1106-preview' => array(
315+
'description' => __( 'The latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Returns a maximum of 4,096 output tokens.', 'gravityforms-openai' ),
316+
),
314317
),
315318
'edits' => array(
316319
'text-davinci-edit-001' => array(

0 commit comments

Comments
 (0)