hahahumble / speechgpt

💬 SpeechGPT is a web application that enables you to converse with ChatGPT.
https://speechgpt.app
MIT License
2.75k stars 402 forks source link

Fail to deploy with environment variables #37

Closed TomBener closed 1 year ago

TomBener commented 1 year ago

Describe the bug

I have deployed the project on Vercel and set the corresponding keys. However, it prompted that You don't have provided an OpenAI API Key.

Steps to reproduce

On Vercel's dashboard, I've set 4 keys as follows:

OPENAI_API_KEY: [my own key]
OPENAI_HOST: [my own address]
AZURE_REGION: eastus
AZURE_KEY: [my own key]
hahahumble commented 1 year ago

You need to set it like this:

VITE_OPENAI_API_KEY:[my_own_key]
VITE_OPENAI_HOST:[my_own_address]
VITE_AZURE_REGION:eastus
VITE_AZURE_KEY:[my_own_key]

And we have also added a button in README to deploy directly to Vercel with environment variables

TomBener commented 1 year ago

Thanks! I've made it by clicking the button to deploy on Vercel. But it got stuck on "Waiting" all the time with my own deployment. Please help me fix it.

CleanShot 2023-04-07 at 08 07 03@2x

Update

It's my fault that environmental variables were set wrongly. Now it fixed.