just enable get from env when not configured
This commit is contained in:
parent
c9ec98a77c
commit
a2370d378b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue