fix: typo

This commit is contained in:
Constaline 2023-06-25 21:33:22 +08:00
parent c05de45d99
commit 2f2aefd48e
5 changed files with 6 additions and 6 deletions

View File

@ -31,4 +31,4 @@ DISABLE_GPT4=
# (optional) # (optional)
# Default: Empty # Default: Empty
# If you do not want users to query balance, set this value to 1. # If you do not want users to query balance, set this value to 1.
Hide_Balance_Query= HIDE_BALANCE_QUERY=

View File

@ -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. 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 > Default: Empty

View File

@ -98,7 +98,7 @@ OpenAI 接口代理 URL如果你手动配置了 openai 接口代理,请填
如果你不想让用户使用 GPT-4将此环境变量设置为 1 即可。 如果你不想让用户使用 GPT-4将此环境变量设置为 1 即可。
### `Hide_Balance_Query` (可选) ### `HIDE_BALANCE_QUERY` (可选)
如果你不想让用户查询余额,将此环境变量设置为 1 即可。 如果你不想让用户查询余额,将此环境变量设置为 1 即可。

View File

@ -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. 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. Si no desea que los usuarios consulte el saldo, establezca esta variable de entorno en 1.

View File

@ -12,7 +12,7 @@ declare global {
DISABLE_GPT4?: string; // allow user to use gpt-4 or not DISABLE_GPT4?: string; // allow user to use gpt-4 or not
BUILD_MODE?: "standalone" | "export"; BUILD_MODE?: "standalone" | "export";
BUILD_APP?: string; // is building desktop app 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, isVercel: !!process.env.VERCEL,
hideUserApiKey: !!process.env.HIDE_USER_API_KEY, hideUserApiKey: !!process.env.HIDE_USER_API_KEY,
enableGPT4: !process.env.DISABLE_GPT4, enableGPT4: !process.env.DISABLE_GPT4,
hideBalanceQuery: !!process.env.Hide_Balance_Query, hideBalanceQuery: !!process.env.HIDE_BALANCE_QUERY,
}; };
}; };