chore: rename open api env name (#591)

This commit is contained in:
Nathan.fooo 2024-05-31 10:46:18 +08:00 committed by GitHub
parent 33a68983b0
commit 89030c420f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ pub fn get_configuration() -> Result<Config, anyhow::Error> {
client_timeout: get_env_var("APPFLOWY_WEBSOCKET_CLIENT_TIMEOUT", "60").parse()?,
},
redis_uri: get_env_var("APPFLOWY_REDIS_URI", "redis://localhost:6379").into(),
openai_api_key: std::env::var("APPFLOWY_OPENAI_API_KEY")
openai_api_key: std::env::var("APPFLOWY_AI_OPENAI_API_KEY")
.map(Secret::from)
.ok(),
s3: S3Setting {