reduced matching limit

This commit is contained in:
SwiftyOS
2023-09-21 17:18:11 +02:00
parent 58a183544a
commit ec7d3e73d7

View File

@@ -82,8 +82,10 @@ class PromptEngine:
str: The closest match to the target.
"""
try:
matches = get_close_matches(target, model_dirs, n=1, cutoff=0.6)
LOG.warning(matches)
matches = get_close_matches(target, model_dirs, n=1, cutoff=0.1)
if matches:
matches_str = ', '.join(matches)
LOG.debug(matches_str)
for m in matches:
LOG.info(m)
return matches[0]