Plugin Directory

Changeset 3081493


Ignore:
Timestamp:
05/05/2024 12:01:44 PM (2 years ago)
Author:
ABCdatos
Message:

GPT-4 Turbo support

Location:
ai-content-creator/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ai-content-creator/trunk/admin/funciones.php

    r2915256 r3081493  
    167167function aicc_modelos() {
    168168    $modelos = array(
     169        'gpt-4-turbo',
    169170        'gpt-4',
    170171        'gpt-3.5-turbo',
     
    187188
    188189    switch ( $modelo ) {
     190        case 'gpt-4-turbo':
     191            $nombre = 'GPT-4 Turbo';
     192            break;
    189193        case 'gpt-4':
    190194            $nombre = 'GPT-4';
    191195            break;
    192196        case 'gpt-3.5-turbo':
    193             $nombre = 'GPT-3.5';
     197            $nombre = 'GPT-3.5 Turbo';
    194198            break;
    195199        case 'text-davinci-003':
     
    303307    if ( 'gpt-3.5-turbo' === $modelo
    304308        || 'gpt-4' === $modelo
     309        || 'gpt-4-turbo' === $modelo
    305310        || 'gpt-4-32k' === $modelo
    306311    ) {
     
    386391    $palabras_relevantes = array_filter(
    387392        $palabras_relevantes,
    388         function( $palabra ) {
     393        function ( $palabra ) {
    389394            // Asegura la compatibilidad con PHP 5.4.
    390395            $palabra_trim = trim( $palabra );
  • ai-content-creator/trunk/admin/opciones.php

    r2915485 r3081493  
    322322    aicc_mostrar_campo_radio_modelo( $modelo, 'gpt-3.5-turbo', $texto );
    323323
    324     $texto = __( 'Currently in a limited beta and only accessible to those who have been granted access.', 'ai-content-creator' ) . ' ' . sprintf( __( 'Price %s higher than GPT-3.5', 'ai-content-creator' ), '30x' );
     324    $texto = __( 'Reqires a minimum payment of 5 USD to grant access.', 'ai-content-creator' ) . ' ' . sprintf( __( 'Price %s higher than GPT-3.5', 'ai-content-creator' ), '30x' );
    325325    aicc_mostrar_campo_radio_modelo( $modelo, 'gpt-4', $texto );
     326
     327    $texto = __( 'Updated GPT-4.', 'ai-content-creator' ) . ' ' . __( 'Price is lower than GPT-4', 'ai-content-creator' );
     328    aicc_mostrar_campo_radio_modelo( $modelo, 'gpt-4-turbo', $texto );
    326329
    327330    $texto = '(' . __( 'Under development', 'ai-content-creator' ) . ')';
  • ai-content-creator/trunk/ai-content-creator.php

    r3080858 r3081493  
    44 * Plugin URI:  https://taller.abcdatos.net/ai-content-creator-wordpress/
    55 * Description: Creates new posts content using AI API
    6  * Version:     1.1.4
     6 * Version:     1.1.5-dev
    77 * Author:      ABCdatos
    88 * Author URI:  https://taller.abcdatos.net/
  • ai-content-creator/trunk/classes/class-aiccgeneracion.php

    r3080807 r3081493  
    914914    private function precio_token_solicitud() {
    915915        switch ( $this->modelo() ) {
     916            case 'gpt-4-turbo':
     917                $precio_token = 0.00001;
     918                break;
    916919            case 'gpt-4':
    917920                $precio_token = 0.00003;
     
    933936    private function precio_token_respuesta() {
    934937        switch ( $this->modelo() ) {
     938            case 'gpt-4-turbo':
     939                $precio_token = 0.00003;
     940                break;
    935941            case 'gpt-4':
    936942                $precio_token = 0.00006;
  • ai-content-creator/trunk/readme.txt

    r3080858 r3081493  
    9999== Changelog ==
    100100
    101 = 1.1.3 =
     101= 1.1.5 =
     102*May 05 2024*
     103* GPT-4 Turbo supported.
     104
     105= 1.1.4 =
    102106*May 03 2024*
    103107* Corrected fatal error.
     
    159163== Upgrade Notice ==
    160164
     165= 1.1.5 =
     166* GPT-4 Turbo supported, cheaper than GPT-4 and with updated database.
     167
    161168= 1.1.0 =
    162169* Includes an easy featured image selection for each article from Pixabay.
Note: See TracChangeset for help on using the changeset viewer.