From 8afb8e422f0569631379a971f42805c11086a193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= Date: Mon, 13 May 2024 23:04:03 +0200 Subject: [PATCH] feat: update model to `gpt-4o` --- includes/AltGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/AltGenerator.php b/includes/AltGenerator.php index 7204a8a..bda0b94 100644 --- a/includes/AltGenerator.php +++ b/includes/AltGenerator.php @@ -7,7 +7,7 @@ class AltGenerator { const API_URL = 'https://api.openai.com/v1/chat/completions'; - const MODEL = 'gpt-4-turbo'; + const MODEL = 'gpt-4o'; public static function generate_alt_text( int $attachment_id, string $user_prompt = '' ): string|WP_Error { if ( ! wp_attachment_is_image( $attachment_id ) ) {