mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-09-05 06:56:53 +08:00
feat: auth page setting for claude api
feat: fix lang support
This commit is contained in:
@@ -20,6 +20,8 @@ export function AuthPage() {
|
||||
accessStore.update((access) => {
|
||||
access.openaiApiKey = "";
|
||||
access.accessCode = "";
|
||||
access.googleApiKey = "";
|
||||
access.anthropicApiKey = "";
|
||||
});
|
||||
}; // Reset access code to empty string
|
||||
|
||||
@@ -75,6 +77,17 @@ export function AuthPage() {
|
||||
);
|
||||
}}
|
||||
/>
|
||||
<input
|
||||
className={styles["auth-input"]}
|
||||
type="password"
|
||||
placeholder={Locale.Settings.Access.Anthropic.ApiKey.Placeholder}
|
||||
value={accessStore.anthropicApiKey}
|
||||
onChange={(e) => {
|
||||
accessStore.update(
|
||||
(access) => (access.anthropicApiKey = e.currentTarget.value),
|
||||
);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
) : null}
|
||||
|
||||
|
Reference in New Issue
Block a user