anse-app / chatgpt-demo

Minimal web UI for ChatGPT.
https://chatgpt.ddiu.me
MIT License
8.01k stars 3.8k forks source link

feat: support reading configurations from environment variables in do… #347

Closed yangsijie666 closed 1 year ago

yangsijie666 commented 1 year ago

feat: support read configuration from system environment variable

Description

This PR addresses an issue where the application requires the .env file to exist before building the container.

To solve this problem, I've added support for reading configuration from system environment variables. This allows the application to retrieve the necessary configuration even if the .env file is not present.

Please take a look and let me know if there's anything else I can do to help. Thanks for your time and consideration!

Linked Issues

invalid_api_key Incorrect API key provided: undefined. #297

Additional context

netlify[bot] commented 1 year ago

Deploy Preview for chatgpt-api-demo failed.

Name Link
Latest commit d8c03854a74e591bd5474a84703c29952ea27e40
Latest deploy log https://app.netlify.com/sites/chatgpt-api-demo/deploys/642bdb1e08b605000838759a
vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to the ddiu8081's Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chatgpt-demo ❌ Failed (Inspect) Apr 4, 2023 8:14am
yzh990918 commented 1 year ago

Sorry, development mode process is not supported by Astro.