Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

reduced matching limit

SwiftyOSec7d3e73d7f9
diff --git a/autogpts/forge/forge/sdk/prompting.py b/autogpts/forge/forge/sdk/prompting.py
index 0b8ad33a6b..d512ddcbaf 100644
--- a/autogpts/forge/forge/sdk/prompting.py
+++ b/autogpts/forge/forge/sdk/prompting.py
@@ -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]