From 89030c420fc6f3994258447666858b392862425f Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Fri, 31 May 2024 10:46:18 +0800 Subject: [PATCH] chore: rename open api env name (#591) --- src/config/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.rs b/src/config/config.rs index 888be48e..58ac383f 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -161,7 +161,7 @@ pub fn get_configuration() -> Result { 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 {