chatgpt-demo
chatgpt-demo copied to clipboard
feat:Add custom OPENAI_API_KEY functionality
Description
Add custom OPENAI_API_KEY functionality. If an incorrect key is set, the official error message will be returned. If no key is set, the OPENAI_API_KEY configured in the environment variable will be used.

Linked Issues
Additional context
Someone is attempting to deploy a commit to a Personal Account owned by @ddiu8081 on Vercel.
@ddiu8081 first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated |
|---|---|---|---|---|
| chatgpt-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add your feedback | Mar 9, 2023 at 6:01AM (UTC) |
Thanks! But I have some new plans for the UI interface. Please allow me to come back to this PR after the UI adjustments soon.
I think we can merge the backend part only. In v2, the ui interface needs to be redrawn, but the logical parts can be reused.