Skip to content

Commit

Permalink
Minor text updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter authored Dec 20, 2024
1 parent b64a678 commit 2a974dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Classifai/Providers/XAI/Grok.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ protected function authenticate_credentials( string $api_key = '' ) {
*/
public function rest_endpoint_callback( $post_id = 0, string $route_to_call = '', array $args = [] ) {
if ( ! $post_id || ! get_post( $post_id ) ) {
return new WP_Error( 'post_id_required', esc_html__( 'A valid post ID is required to generate an excerpt.', 'classifai' ) );
return new WP_Error( 'post_id_required', esc_html__( 'A valid ID is required.', 'classifai' ) );
}

$route_to_call = strtolower( $route_to_call );
Expand Down Expand Up @@ -317,7 +317,7 @@ public function generate_descriptive_text( int $post_id = 0, array $args = [] )
/**
* Filter the prompt we will send to xAI Grok.
*
* @since 3.2.0
* @since x.x.x
* @hook classifai_xai_grok_descriptive_text_prompt
*
* @param {string} $prompt Prompt we are sending to xAI Grok.
Expand All @@ -330,7 +330,7 @@ public function generate_descriptive_text( int $post_id = 0, array $args = [] )
/**
* Filter the request body before sending to xAI Grok.
*
* @since 3.2.0
* @since x.x.x
* @hook classifai_xai_grok_descriptive_text_request_body
*
* @param {array} $body Request body that will be sent to xAI Grok.
Expand Down

0 comments on commit 2a974dc

Please sign in to comment.