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