Skip to content

Commit 82e38e4

Browse files
barthcclaygriffiths
authored andcommitted
Updated the OpenAI model selection for Chat Completions to be gpt-4o, gpt-4-turbo, and gpt-3.5-turbo.
1 parent 134d539 commit 82e38e4

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

class-gwiz-gf-openai.php

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -261,23 +261,14 @@ public function init() {
261261
public function get_openai_models() {
262262
$models = array(
263263
'chat/completions' => array(
264-
'gpt-3.5-turbo' => array(
265-
'description' => __( 'The same model used by <a href="https://chat.openai.com" target="_blank">ChatGPT</a>.', 'gravityforms-openai' ),
266-
),
267-
'gpt-3.5-turbo-16k' => array(
268-
'description' => __( 'Same capabilities as the standard gpt-3.5-turbo model but with 4x the context length.', 'gravityforms-openai' ),
269-
),
270-
'gpt-4' => array(
271-
'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' ),
272-
),
273-
'gpt-4-32k' => array(
274-
'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' ),
264+
'gpt-4o' => array(
265+
'description' => __( 'OpenAI\'s fastest and most affordable flagship model. Context length: 128k. <a href="https://platform.openai.com/docs/models/gpt-4o" target="_blank">More Details</a>', 'gravityforms-openai' ),
275266
),
276-
'gpt-4-1106-preview' => array(
277-
'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' ),
267+
'gpt-4-turbo' => array(
268+
'description' => __( 'OpenAI\'s previous high-intelligence model. Context length: 128k. <a href="https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4" target="_blank">More Details</a>', 'gravityforms-openai' ),
278269
),
279-
'gpt-4o' => array(
280-
'description' => __( 'The newest flagship model that provides GPT-4-level intelligence but is much faster and improves on its capabilities across text, voice, and vision.', 'gravityforms-openai' ),
270+
'gpt-3.5-turbo' => array(
271+
'description' => __( 'Inexpensive model for simple tasks. Context length: 16k. <a href="https://platform.openai.com/docs/models/gpt-3-5-turbo" target="_blank">More Details</a>', 'gravityforms-openai' ),
281272
),
282273
),
283274
'moderations' => array(

0 commit comments

Comments
 (0)