diff --git a/src/components/GenerateRoadmap/AITermSuggestionInput.tsx b/src/components/GenerateRoadmap/AITermSuggestionInput.tsx index f6670e264..1d183534a 100644 --- a/src/components/GenerateRoadmap/AITermSuggestionInput.tsx +++ b/src/components/GenerateRoadmap/AITermSuggestionInput.tsx @@ -69,6 +69,10 @@ export function AITermSuggestionInput(props: AITermSuggestionInputProps) { return []; } + if (trimmedValue.length < 3) { + return []; + } + if (termCache.has(trimmedValue)) { const cachedData = termCache.get(trimmedValue); return cachedData || [];