just enable get from env when not configured

This commit is contained in:
Lucas Oliveira 2025-11-14 17:56:50 -03:00
parent c9ec98a77c
commit a2370d378b

View file

@ -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