mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 15:43:03 +08:00
Revert "Chat gpt"
This commit is contained in:
@@ -50,33 +50,33 @@ export function AuthPage() {
|
||||
);
|
||||
}}
|
||||
/>
|
||||
{/*{!accessStore.hideUserApiKey ? (*/}
|
||||
{/* <>*/}
|
||||
{/* <div className={styles["auth-tips"]}>{Locale.Auth.SubTips}</div>*/}
|
||||
{/* <input*/}
|
||||
{/* className={styles["auth-input"]}*/}
|
||||
{/* type="password"*/}
|
||||
{/* placeholder={Locale.Settings.Access.OpenAI.ApiKey.Placeholder}*/}
|
||||
{/* value={accessStore.openaiApiKey}*/}
|
||||
{/* onChange={(e) => {*/}
|
||||
{/* accessStore.update(*/}
|
||||
{/* (access) => (access.openaiApiKey = e.currentTarget.value),*/}
|
||||
{/* );*/}
|
||||
{/* }}*/}
|
||||
{/* />*/}
|
||||
{/* <input*/}
|
||||
{/* className={styles["auth-input"]}*/}
|
||||
{/* type="password"*/}
|
||||
{/* placeholder={Locale.Settings.Access.Google.ApiKey.Placeholder}*/}
|
||||
{/* value={accessStore.googleApiKey}*/}
|
||||
{/* onChange={(e) => {*/}
|
||||
{/* accessStore.update(*/}
|
||||
{/* (access) => (access.googleApiKey = e.currentTarget.value),*/}
|
||||
{/* );*/}
|
||||
{/* }}*/}
|
||||
{/* />*/}
|
||||
{/* </>*/}
|
||||
{/*) : null}*/}
|
||||
{!accessStore.hideUserApiKey ? (
|
||||
<>
|
||||
<div className={styles["auth-tips"]}>{Locale.Auth.SubTips}</div>
|
||||
<input
|
||||
className={styles["auth-input"]}
|
||||
type="password"
|
||||
placeholder={Locale.Settings.Access.OpenAI.ApiKey.Placeholder}
|
||||
value={accessStore.openaiApiKey}
|
||||
onChange={(e) => {
|
||||
accessStore.update(
|
||||
(access) => (access.openaiApiKey = e.currentTarget.value),
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<input
|
||||
className={styles["auth-input"]}
|
||||
type="password"
|
||||
placeholder={Locale.Settings.Access.Google.ApiKey.Placeholder}
|
||||
value={accessStore.googleApiKey}
|
||||
onChange={(e) => {
|
||||
accessStore.update(
|
||||
(access) => (access.googleApiKey = e.currentTarget.value),
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
) : null}
|
||||
|
||||
<div className={styles["auth-actions"]}>
|
||||
<IconButton
|
||||
|
Reference in New Issue
Block a user