Making WordPress.org


Ignore:
Timestamp:
06/08/2023 03:07:08 AM (2 years ago)
Author:
akirk
Message:

Translate: Use the streaming review response from ChatGPT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-translation-helpers.php

    r12629 r12633  
    402402            '$gp_comment_feedback_settings',
    403403            array(
    404                 'url'             => admin_url( 'admin-ajax.php' ),
    405                 'nonce'           => wp_create_nonce( 'gp_comment_feedback' ),
    406                 'locale_slug'     => $translation_set['locale_slug'],
    407                 'language'        => $gp_locale ? $gp_locale->english_name : 'Unknown',
    408                 'has_openai_key'  => !! apply_filters( 'gp_get_openai_key', null ),
    409                 'comment_reasons' => Helper_Translation_Discussion::get_comment_reasons( $translation_set['locale_slug'] ),
     404                'url'                => admin_url( 'admin-ajax.php' ),
     405                'nonce'              => wp_create_nonce( 'gp_comment_feedback' ),
     406                'locale_slug'        => $translation_set['locale_slug'],
     407                'language'           => $gp_locale ? $gp_locale->english_name : 'Unknown',
     408                'openai_key'         => apply_filters( 'gp_get_openai_key', null ),
     409                'openai_temperature' => apply_filters( 'gp_get_openai_temperature', 0.8 ),
     410                'comment_reasons'    => Helper_Translation_Discussion::get_comment_reasons( $translation_set['locale_slug'] ),
    410411            )
    411412        );
Note: See TracChangeset for help on using the changeset viewer.