function faith_test_callback() {

    if (!defined('GEMINI_API_KEY')) {
        wp_send_json_error('Gemini API Key Not Found');
    }

    $api_key = GEMINI_API_KEY;

    $response = wp_remote_post(
        'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=' . $api_key,
        array(
            'headers' => array(
                'Content-Type' => 'application/json'
            ),
            'body' => wp_json_encode(array(
                'contents' => array(
                    array(
                        'parts' => array(
                            array(
                                'text' => 'Write one short Christian sentence about God\'s love.'
                            )
                        )
                    )
                )
            )),
            'timeout' => 30
        )
    );

    if (is_wp_error($response)) {
        wp_send_json_error($response->get_error_message());
    }

    $body = json_decode(
        wp_remote_retrieve_body($response),
        true
    );

    if (
        isset($body['candidates'][0]['content']['parts'][0]['text'])
    ) {

        wp_send_json_success(
            $body['candidates'][0]['content']['parts'][0]['text']
        );

    } else {

        wp_send_json_error($body);
    }
}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//faithaitools.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://faithaitools.com/post-sitemap.xml</loc>
		<lastmod>2026-06-02T20:12:44+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://faithaitools.com/page-sitemap.xml</loc>
		<lastmod>2026-06-08T13:53:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://faithaitools.com/category-sitemap.xml</loc>
		<lastmod>2026-06-02T20:12:44+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->