mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 23:14:25 +01:00
reduced matching limit
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user