NodeJS Server for integrating with ChatGPT and Google Voice to Text API.
Website - http://quest-ui.surge.sh
API Reference - https://quest-api.herokuapp.com
npm i- Create
credentials.jsonfile containing google authorization credentials:
// credentials.json
{
"type":"<type>",
"project_id": "<project_id>",
"private_key_id":"<private_key_id>",
"private_key": "<private_key>",
"client_email": "<client_email>",
"client_id": "<client_id>",
"auth_uri": "<auth_uri>",
"token_uri":"<token_uri>",
"auth_provider_x509_cert_url":"<auth_provider_x509_cert_url>",
"client_x509_cert_url":"<client_x509_cert_url>"
}- Create
.envfile:
echo '# create google developer account to receive credentials json file:
GOOGLE_APPLICATION_CREDENTIALS="absolute/path/to/credentials.json"
# retrieve openaicredentials at https://beta.openai.com/account/api-keys
OPEN_AI_API_KEY="<open-ai-api-key>"
OPEN_AI_ORG="<open-ai-org>"
# comma-separated list of web client urls from which to allow access and bypass CORS:
ORIGIN_WHITELIST="http://localhost:5500,http://localhost:3000"
# port on which to run server locally:
PORT=8080' | cat > .test.envnpm run dev:watch