diff --git a/.env.template b/.env.template index 954510c78..0f4bf0e7c 100644 --- a/.env.template +++ b/.env.template @@ -31,4 +31,4 @@ DISABLE_GPT4= # (optional) # Default: Empty # If you do not want users to query balance, set this value to 1. -Hide_Balance_Query= \ No newline at end of file +HIDE_BALANCE_QUERY= \ No newline at end of file diff --git a/README.md b/README.md index 231fb1f07..91c857f1f 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ If you do not want users to input their own API key, set this value to 1. If you do not want users to use GPT-4, set this value to 1. -### `Hide_Balance_Query` (optional) +### `HIDE_BALANCE_QUERY` (optional) > Default: Empty diff --git a/README_CN.md b/README_CN.md index b32b2d80a..89a6f39f0 100644 --- a/README_CN.md +++ b/README_CN.md @@ -98,7 +98,7 @@ OpenAI 接口代理 URL,如果你手动配置了 openai 接口代理,请填 如果你不想让用户使用 GPT-4,将此环境变量设置为 1 即可。 -### `Hide_Balance_Query` (可选) +### `HIDE_BALANCE_QUERY` (可选) 如果你不想让用户查询余额,将此环境变量设置为 1 即可。 diff --git a/README_ES.md b/README_ES.md index 78fe11533..e9705e402 100644 --- a/README_ES.md +++ b/README_ES.md @@ -96,7 +96,7 @@ Si no desea que los usuarios rellenen la clave de API ellos mismos, establezca e Si no desea que los usuarios utilicen GPT-4, establezca esta variable de entorno en 1. -### `Hide_Balance_Query` (Opcional) +### `HIDE_BALANCE_QUERY` (Opcional) Si no desea que los usuarios consulte el saldo, establezca esta variable de entorno en 1. diff --git a/app/config/server.ts b/app/config/server.ts index 8e7074484..5479995e9 100644 --- a/app/config/server.ts +++ b/app/config/server.ts @@ -12,7 +12,7 @@ declare global { DISABLE_GPT4?: string; // allow user to use gpt-4 or not BUILD_MODE?: "standalone" | "export"; BUILD_APP?: string; // is building desktop app - Hide_Balance_Query?: string; // allow user to query balance or not + HIDE_BALANCE_QUERY?: string; // allow user to query balance or not } } } @@ -47,6 +47,6 @@ export const getServerSideConfig = () => { isVercel: !!process.env.VERCEL, hideUserApiKey: !!process.env.HIDE_USER_API_KEY, enableGPT4: !process.env.DISABLE_GPT4, - hideBalanceQuery: !!process.env.Hide_Balance_Query, + hideBalanceQuery: !!process.env.HIDE_BALANCE_QUERY, }; };