Skip to content

Commit

Permalink
Merge pull request #3 from newfold-labs/generic_response
Browse files Browse the repository at this point in the history
allow all responses to pass through. Remove non required constant
  • Loading branch information
amartya-dev authored Aug 2, 2023
2 parents c6b73ec + e9f3538 commit 899cd81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
'plugins_loaded',
function () {
// Set Global Constants
if ( ! defined( 'NFD_MODULE_AI_VERSION' ) ) {
define( 'NFD_MODULE_AI_VERSION', '0.0.1' );
}

if ( ! defined( 'NFD_MODULE_AI_DIR' ) ) {
define( 'NFD_MODULE_AI_DIR', __DIR__ );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/Utils/AISearchUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function get_search_results(

try {
return array(
'result' => $parsed_response['payload']['choices'][0]['text'],
'result' => $parsed_response['payload']['choices'],
'post_id' => $parsed_response['payload']['postId'],
);
} catch ( \Exception $exception ) {
Expand Down

0 comments on commit 899cd81

Please sign in to comment.