Changeset 13830 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/ajax-fetch-openai-review.php
- Timestamp:
- 06/17/2024 02:12:06 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/ajax-fetch-openai-review.php
r12628 r13830 55 55 $openai_query .= 'For the english text "' . addslashes( $original_singular ) . '", is "' . addslashes( $translation ) . '" a correct translation in ' . addslashes( $language ) . '?'; 56 56 $openai_query = ( $is_retry ) ? 'Are you sure that ' . $openai_query : $openai_query; 57 $openai_model = gp_array_get( $default_sort, 'openai_model', 'gpt-3.5-turbo' ); 57 58 if ( $glossary_query ) { 58 59 $messages[] = array( … … 78 79 'body' => wp_json_encode( 79 80 array( 80 'model' => 'gpt-3.5-turbo',81 'model' => $openai_model, 81 82 'max_tokens' => 1000, 82 83 'n' => 1,
Note: See TracChangeset
for help on using the changeset viewer.