enable ollama query only when configured or endpoint present

This commit is contained in:
Lucas Oliveira 2025-11-14 17:55:52 -03:00
parent 449b5dc38e
commit 2b225ab554

View file

@ -36,6 +36,7 @@ export function OllamaOnboarding({
error: modelsError,
} = useGetOllamaModelsQuery(
debouncedEndpoint ? { endpoint: debouncedEndpoint } : undefined,
{ enabled: !!debouncedEndpoint || alreadyConfigured },
);
// Use custom hook for model selection logic