diff --git a/src/components/providers/forms/GeminiFormFields.tsx b/src/components/providers/forms/GeminiFormFields.tsx index ea14e358a..6e8af3f89 100644 --- a/src/components/providers/forms/GeminiFormFields.tsx +++ b/src/components/providers/forms/GeminiFormFields.tsx @@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next"; import { FormLabel } from "@/components/ui/form"; import { Download, Info, Loader2 } from "lucide-react"; import { Button } from "@/components/ui/button"; +import { HelpTip } from "@/components/ui/help-tip"; import { toast } from "@/lib/toast"; import EndpointSpeedTest from "./EndpointSpeedTest"; import { ApiKeySection, EndpointField, ModelInputWithFetch } from "./shared"; @@ -118,11 +119,6 @@ export function GeminiFormFields({ return ( <> - {appId === "agy" && ( -

- {t("provider.form.agy.connectionHint")} -

- )} {/* Google OAuth 提示 */} {isGoogleOfficial && (
@@ -151,7 +147,7 @@ export function GeminiFormFields({ value={apiKey} onChange={onApiKeyChange} category={category} - required={appId !== "agy" || Boolean(baseUrl.trim())} + required shouldShowLink={shouldShowApiKeyLink} websiteUrl={websiteUrl} isPartner={isPartner} @@ -170,6 +166,9 @@ export function GeminiFormFields({ placeholder={t("providerForm.apiEndpointPlaceholder", { defaultValue: "https://your-api-endpoint.com/", })} + help={ + appId === "agy" ? t("provider.form.agy.endpointHelp") : undefined + } onManageClick={() => onEndpointModalToggle(true)} /> )} @@ -178,9 +177,20 @@ export function GeminiFormFields({ {shouldShowModelField && (
- - {t("provider.form.gemini.model", { defaultValue: "模型" })} - +
+ + {t("provider.form.gemini.model", { defaultValue: "模型" })} + + {appId === "agy" && ( + + {t("provider.form.agy.modelHelp")} + + )} +