This commit is contained in:
lloydzhou 2024-10-23 12:00:59 +08:00
parent e791cd441d
commit 65bb962fc0
1 changed files with 4 additions and 4 deletions

View File

@ -1206,11 +1206,11 @@ export function Settings() {
<input <input
aria-label={Locale.Settings.Access.XAI.Endpoint.Title} aria-label={Locale.Settings.Access.XAI.Endpoint.Title}
type="text" type="text"
value={accessStore.moonshotUrl} value={accessStore.xaiUrl}
placeholder={XAI.ExampleEndpoint} placeholder={XAI.ExampleEndpoint}
onChange={(e) => onChange={(e) =>
accessStore.update( accessStore.update(
(access) => (access.moonshotUrl = e.currentTarget.value), (access) => (access.xaiUrl = e.currentTarget.value),
) )
} }
></input> ></input>
@ -1221,12 +1221,12 @@ export function Settings() {
> >
<PasswordInput <PasswordInput
aria-label={Locale.Settings.Access.XAI.ApiKey.Title} aria-label={Locale.Settings.Access.XAI.ApiKey.Title}
value={accessStore.moonshotApiKey} value={accessStore.xaiApiKey}
type="text" type="text"
placeholder={Locale.Settings.Access.XAI.ApiKey.Placeholder} placeholder={Locale.Settings.Access.XAI.ApiKey.Placeholder}
onChange={(e) => { onChange={(e) => {
accessStore.update( accessStore.update(
(access) => (access.moonshotApiKey = e.currentTarget.value), (access) => (access.xaiApiKey = e.currentTarget.value),
); );
}} }}
/> />