fix(proxy_server.py): fix import

This commit is contained in:
Krrish Dholakia 2024-03-20 19:15:06 -07:00
parent 3bb0e24cb7
commit f24d3ffdb6
2 changed files with 5 additions and 5 deletions

View file

@ -70,8 +70,8 @@ class _OPTIONAL_PromptInjectionDetection(CustomLogger):
for prep in self.prepositions:
phrase = " ".join(filter(None, [verb, adj, prep])).strip()
if (
len(phrase.split()) > 1
): # additional check to ensure more than 1 word
len(phrase.split()) > 2
): # additional check to ensure more than 2 words
combinations.append(phrase.lower())
return combinations