Skip to content

Commit

Permalink
revert dev changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amartya-dev committed Feb 1, 2024
1 parent dd252f1 commit 741b62a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions includes/SiteGen/SiteGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class SiteGen {
* Function to check capabilities
*/
private static function check_capabilities() {
return true;
$capability = new SiteCapabilities();

$ai_enabled = $capability->get( 'canAccessAI' );
Expand Down Expand Up @@ -212,7 +211,7 @@ private static function generate_pattern_content(
'timeout' => 60,
'body' => wp_json_encode(
array(
'hiivetoken' => 'test-ai-sitegen',
'hiivetoken' => HiiveConnection::get_auth_token(),
'prompt' => array(
'site_description' => $site_description,
'keywords' => wp_json_encode( $keywords ),
Expand Down Expand Up @@ -290,7 +289,7 @@ public static function generate_site_meta( $site_info, $identifier, $skip_cache
'timeout' => 60,
'body' => wp_json_encode(
array(
'hiivetoken' => 'test-ai-sitegen',
'hiivetoken' => HiiveConnection::get_auth_token(),
'prompt' => self::get_prompt_from_info( $site_info ),
'identifier' => $identifier,
)
Expand Down Expand Up @@ -381,7 +380,7 @@ public static function get_home_pages( $site_description, $content_style, $targe
'timeout' => 60,
'body' => wp_json_encode(
array(
'hiivetoken' => 'test-ai-sitegen',
'hiivetoken' => HiiveConnection::get_auth_token(),
'prompt' => array(
'site_description' => $site_description,
'keywords' => wp_json_encode( $keywords ),
Expand Down Expand Up @@ -484,7 +483,7 @@ public static function get_content_for_page(
'timeout' => 60,
'body' => wp_json_encode(
array(
'hiivetoken' => 'test-ai-sitegen',
'hiivetoken' => HiiveConnection::get_auth_token(),
'prompt' => array(
'site_description' => $site_description,
'content_style' => wp_json_encode( $content_style ),
Expand Down

0 comments on commit 741b62a

Please sign in to comment.