This commit is contained in:
hailin 2025-04-22 17:59:32 +08:00
parent 6f69bc69c9
commit c8b996142f
1 changed files with 4 additions and 4 deletions

View File

@ -516,10 +516,10 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
{useAzureOpenai {useAzureOpenai
? envKeyMap["azure"] ? envKeyMap["azure"]
? "" ? ""
: "Azure OpenAI API Key" : t("setup.azureOpenaiApiKey")
: envKeyMap["openai"] : envKeyMap["openai"]
? "" ? ""
: "OpenAI API Key"} : t("setup.openaiApiKey")}
<Button <Button
className={cn( className={cn(
@ -543,7 +543,7 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
<Label>{t("profile.azureOpenAIKeySetByAdmin")}</Label> <Label>{t("profile.azureOpenAIKeySetByAdmin")}</Label>
) : ( ) : (
<Input <Input
placeholder={t("profile.azureOpenaiApiKey")} placeholder={t("setup.azureOpenaiApiKey")}
type="password" type="password"
value={azureOpenaiAPIKey} value={azureOpenaiAPIKey}
onChange={e => setAzureOpenaiAPIKey(e.target.value)} onChange={e => setAzureOpenaiAPIKey(e.target.value)}
@ -556,7 +556,7 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
<Label>{t("profile.openAIAPIKeySetByAdmin")}</Label> <Label>{t("profile.openAIAPIKeySetByAdmin")}</Label>
) : ( ) : (
<Input <Input
placeholder={t("profile.openaiApiKey")} placeholder={t("setup.openaiApiKey")}
type="password" type="password"
value={openaiAPIKey} value={openaiAPIKey}
onChange={e => setOpenaiAPIKey(e.target.value)} onChange={e => setOpenaiAPIKey(e.target.value)}