feat: auth page setting for claude api

feat: fix lang support
This commit is contained in:
chenyu-01
2024-04-08 11:29:31 +08:00
parent 0fbb560e90
commit f871c67da7
3 changed files with 15 additions and 2 deletions

View File

@@ -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}