Skip to content

Commit

Permalink
feat: update model to gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed May 13, 2024
1 parent 6039e66 commit 8afb8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/AltGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 8afb8e4

Please sign in to comment.