Constaline 1 vuosi sitten
vanhempi
commit
2f2aefd48e
5 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 1 1
      .env.template
  2. 1 1
      README.md
  3. 1 1
      README_CN.md
  4. 1 1
      README_ES.md
  5. 2 2
      app/config/server.ts

+ 1 - 1
.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=
+HIDE_BALANCE_QUERY=

+ 1 - 1
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
 

+ 1 - 1
README_CN.md

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

+ 1 - 1
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.
 

+ 2 - 2
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,
   };
 };