mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 15:04:26 +01:00
reduced matching limit
This commit is contained in:
@@ -82,8 +82,10 @@ class PromptEngine:
|
|||||||
str: The closest match to the target.
|
str: The closest match to the target.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
matches = get_close_matches(target, model_dirs, n=1, cutoff=0.6)
|
matches = get_close_matches(target, model_dirs, n=1, cutoff=0.1)
|
||||||
LOG.warning(matches)
|
if matches:
|
||||||
|
matches_str = ', '.join(matches)
|
||||||
|
LOG.debug(matches_str)
|
||||||
for m in matches:
|
for m in matches:
|
||||||
LOG.info(m)
|
LOG.info(m)
|
||||||
return matches[0]
|
return matches[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user