import React from 'react';
function HelpText({ endpoint }: { endpoint: string }) {
const textMap = {
bingAI: (
{'To get your Access token for Bing, login to '}
https://www.bing.com
{`. Use dev tools or an extension while logged into the site to copy the content of the _U cookie.
If this fails, follow these `}
instructions
{' to provide the full cookie strings.'}
),
chatGPTBrowser: (
{'To get your Access token For ChatGPT \'Free Version\', login to '}
https://chat.openai.com
, then visit{' '}
https://chat.openai.com/api/auth/session
. Copy access token.
),
google: (
You need to{' '}
Enable Vertex AI
{' '}
API on Google Cloud, then{' '}
Create a Service Account
{`. Make sure to click 'Create and Continue' to give at least the 'Vertex AI User' role.
Lastly, create a JSON key to import here.`}
),
};
return textMap[endpoint] || null;
}
export default React.memo(HelpText);