Changeset 12629 for sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php
- Timestamp:
- 06/07/2023 08:07:12 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php
r12626 r12629 25 25 26 26 if ( empty( trim( $openai_key ) ) ) { 27 return array(); 27 return array( 28 'status' => 404, 29 'error' => 'No OpenAI Key defined', 30 ); 28 31 } 29 $openai_temperature = 0;30 32 31 33 $openai_query .= 'For the english text "' . $original . '", is "' . $translation . '" a correct translation in ' . $language . '?'; … … 55 57 'n' => 1, 56 58 'messages' => $messages, 57 'temperature' => $openai_temperature,58 59 ) 59 60 ),
Note: See TracChangeset
for help on using the changeset viewer.