修改: .env.template

修改:     app/api/auth.ts
	修改:     app/api/bedrock.ts
	修改:     app/client/api.ts
	修改:     app/client/platforms/bedrock.ts
	修改:     app/components/settings.tsx
	修改:     app/config/server.ts
	修改:     app/constant.t
This commit is contained in:
glay
2024-11-05 14:27:52 +08:00
parent 0f276f59bb
commit afbf5eb541
9 changed files with 184 additions and 153 deletions

View File

@@ -988,12 +988,12 @@ export function Settings() {
>
<PasswordInput
aria-label={Locale.Settings.Access.Bedrock.AccessKey.Title}
value={accessStore.awsAccessKeyId}
value={accessStore.awsAccessKey}
type="text"
placeholder={Locale.Settings.Access.Bedrock.AccessKey.Placeholder}
onChange={(e) => {
accessStore.update(
(access) => (access.awsAccessKeyId = e.currentTarget.value),
(access) => (access.awsAccessKey = e.currentTarget.value),
);
}}
/>
@@ -1004,12 +1004,12 @@ export function Settings() {
>
<PasswordInput
aria-label={Locale.Settings.Access.Bedrock.SecretKey.Title}
value={accessStore.awsSecretAccessKey}
value={accessStore.awsSecretKey}
type="text"
placeholder={Locale.Settings.Access.Bedrock.SecretKey.Placeholder}
onChange={(e) => {
accessStore.update(
(access) => (access.awsSecretAccessKey = e.currentTarget.value),
(access) => (access.awsSecretKey = e.currentTarget.value),
);
}}
/>