diff --git a/frontend/src/app/onboarding/components/openai-onboarding.tsx b/frontend/src/app/onboarding/components/openai-onboarding.tsx index 164007c6..47c427a9 100644 --- a/frontend/src/app/onboarding/components/openai-onboarding.tsx +++ b/frontend/src/app/onboarding/components/openai-onboarding.tsx @@ -34,7 +34,7 @@ export function OpenAIOnboarding({ alreadyConfigured?: boolean; }) { const [apiKey, setApiKey] = useState(""); - const [getFromEnv, setGetFromEnv] = useState(hasEnvApiKey); + const [getFromEnv, setGetFromEnv] = useState(hasEnvApiKey && !alreadyConfigured); const debouncedApiKey = useDebouncedValue(apiKey, 500); // Fetch models from API when API key is provided