Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Constaline committed Jun 25, 2023
1 parent c05de45 commit 2f2aefd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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=
HIDE_BALANCE_QUERY=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ OpenAI 接口代理 URL,如果你手动配置了 openai 接口代理,请填

如果你不想让用户使用 GPT-4,将此环境变量设置为 1 即可。

### `Hide_Balance_Query` (可选)
### `HIDE_BALANCE_QUERY` (可选)

如果你不想让用户查询余额,将此环境变量设置为 1 即可。

Expand Down
2 changes: 1 addition & 1 deletion README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions app/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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,
};
};

0 comments on commit 2f2aefd

Please sign in to comment.