label ? $this->label : __( 'AI analysis', 'ai-guardwall' ), (int) $max_tokens ); if ( is_wp_error( $answer ) ) { return $answer; } return array( 'text' => $answer, 'json' => null !== $schema ? Softvolt_Ai_Bodyguard_Providers::parse_json( $answer ) : null, 'stop' => 'end', 'usage' => array(), 'model' => __( 'Claude (Claude Desktop)', 'ai-guardwall' ), ); } /** * The connection test: one short task. * * @return array|WP_Error */ public function test() { $this->label = __( 'Test the connection', 'ai-guardwall' ); return $this->complete( 'You are a connection test. Reply with the single word OK.', 'Say OK.', 400 ); } }