| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | public function permission_check() { |
| 57 | 57 | // Gate on edit_others_posts to match the sibling FAQ/Glossary AI endpoints |
| 58 | - // (AIFaq/AIGlossary) and keep Author-role users from spending the OpenAI budget. | |
| 58 | + // (AIFaq/AIGlossary) and keep Author-role users from spending the AI budget. | |
| 59 | 59 | return current_user_can( 'edit_others_posts' ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | public function generate( WP_REST_Request $request ) { |
| @@ -73,9 +73,9 @@ | ||
| 73 | 73 | $api_key = $write_ai->get_api_key(); |
| 74 | 74 | if ( empty( $api_key ) ) { |
| 75 | 75 | return $this->error( |
| 76 | 76 | 'ai_no_key', |
| 77 | - __( 'OpenAI API key is missing. Add one in BetterDocs settings.', 'betterdocs' ), | |
| 77 | + __( 'AI API key is missing. Add one in BetterDocs settings.', 'betterdocs' ), | |
| 78 | 78 | 400 |
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |