Changeset 13830
- Timestamp:
- 06/17/2024 02:12:06 PM (7 weeks ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions
- Files:
-
- 2 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 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' => , 81 82 'max_tokens' => 1000, 82 83 'n' => 1, -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/routes/class-translation-memory.php
r13827 r13830 219 219 $openai_query .= ' Translate the following text to ' . $gp_locale->english_name . ": \n"; 220 220 $openai_query .= '"' . $original_singular . '"'; 221 221 222 222 223 $messages = array( … … 241 242 'body' => wp_json_encode( 242 243 array( 243 'model' => 'gpt-3.5-turbo',244 'model' => , 244 245 'max_tokens' => 1000, 245 246 'n' => 1,
Note: See TracChangeset
for help on using the changeset viewer.