From a4963e178fff7a5e1d54e1684aaea19f164a4770 Mon Sep 17 00:00:00 2001 From: Clay Griffiths Date: Wed, 26 Jun 2024 12:28:33 -0500 Subject: [PATCH] Updated the OpenAI model selection for Chat Completions to be `gpt-4o`, `gpt-4-turbo`, and `gpt-3.5-turbo`. --- class-gwiz-gf-openai.php | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/class-gwiz-gf-openai.php b/class-gwiz-gf-openai.php index c252b17..4d35bae 100644 --- a/class-gwiz-gf-openai.php +++ b/class-gwiz-gf-openai.php @@ -261,23 +261,14 @@ public function init() { public function get_openai_models() { $models = array( 'chat/completions' => array( - 'gpt-3.5-turbo' => array( - 'description' => __( 'The same model used by ChatGPT.', 'gravityforms-openai' ), - ), - 'gpt-3.5-turbo-16k' => array( - 'description' => __( 'Same capabilities as the standard gpt-3.5-turbo model but with 4x the context length.', 'gravityforms-openai' ), - ), - 'gpt-4' => array( - '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' ), - ), - 'gpt-4-turbo-preview' => array( - 'description' => __( 'The latest GPT-4 model. Supports a context window up to 128,000 tokens. Returns a maximum of 4,096 output tokens.', 'gravityforms-openai' ), + 'gpt-4o' => array( + 'description' => __( 'OpenAI\'s fastest and most affordable flagship model. Context length: 128k. More Details', 'gravityforms-openai' ), ), - 'gpt-4-1106-preview' => array( - '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' ), + 'gpt-4-turbo' => array( + 'description' => __( 'OpenAI\'s previous high-intelligence model. Context length: 128k. More Details', 'gravityforms-openai' ), ), - 'gpt-4o' => array( - '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' ), + 'gpt-3.5-turbo' => array( + 'description' => __( 'Inexpensive model for simple tasks. Context length: 16k. More Details', 'gravityforms-openai' ), ), ), 'moderations' => array(