Skip to content

Commit

Permalink
Added support for gpt-4o-mini chat completions model.
Browse files Browse the repository at this point in the history
  • Loading branch information
barthc authored and claygriffiths committed Aug 23, 2024
1 parent b2613b6 commit 1f18f1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class-gwiz-gf-openai.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ public function get_openai_models() {
'gpt-4-turbo' => array(

Check warning on line 267 in class-gwiz-gf-openai.php

View workflow job for this annotation

GitHub Actions / PHPCS

Array double arrow not aligned correctly; expected 3 space(s) between "'gpt-4-turbo'" and double arrow, but found 1.
'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' ),
),
'gpt-4o-mini' => array(

Check warning on line 270 in class-gwiz-gf-openai.php

View workflow job for this annotation

GitHub Actions / PHPCS

Array double arrow not aligned correctly; expected 3 space(s) between "'gpt-4o-mini'" and double arrow, but found 1.
'description' => __( 'OpenAI\'s most cost-efficient small model. Context length: 128k. <a href="https://platform.openai.com/docs/models/gpt-4o-mini" target="_blank">More Details</a>', 'gravityforms-openai' ),
),
'gpt-3.5-turbo' => array(

Check warning on line 273 in class-gwiz-gf-openai.php

View workflow job for this annotation

GitHub Actions / PHPCS

Array double arrow not aligned correctly; expected 1 space(s) between "'gpt-3.5-turbo'" and double arrow, but found 7.
'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' ),
),
Expand Down

0 comments on commit 1f18f1b

Please sign in to comment.