From 1f18f1b7e5c52ec4babfd79cc10a69f621bbe78f Mon Sep 17 00:00:00 2001 From: barthc Date: Wed, 21 Aug 2024 13:13:06 +0100 Subject: [PATCH] Added support for `gpt-4o-mini` chat completions model. --- class-gwiz-gf-openai.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/class-gwiz-gf-openai.php b/class-gwiz-gf-openai.php index 4d35bae..17cd13e 100644 --- a/class-gwiz-gf-openai.php +++ b/class-gwiz-gf-openai.php @@ -267,6 +267,9 @@ public function get_openai_models() { 'gpt-4-turbo' => array( 'description' => __( 'OpenAI\'s previous high-intelligence model. Context length: 128k. More Details', 'gravityforms-openai' ), ), + 'gpt-4o-mini' => array( + 'description' => __( 'OpenAI\'s most cost-efficient small model. Context length: 128k. More Details', 'gravityforms-openai' ), + ), 'gpt-3.5-turbo' => array( 'description' => __( 'Inexpensive model for simple tasks. Context length: 16k. More Details', 'gravityforms-openai' ), ),