Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix(github_toolkit): pass repo_name in recursive github_get_all_file_paths call (#3912)

jnMetaCode2bc29333d342
diff --git a/camel/toolkits/github_toolkit.py b/camel/toolkits/github_toolkit.py
index 915f11f80..06635ee94 100644
--- a/camel/toolkits/github_toolkit.py
+++ b/camel/toolkits/github_toolkit.py
@@ -313,7 +313,7 @@ class GithubToolkit(BaseToolkit):
for content in contents:
if content.type == "dir":
# If it's a directory, recursively retrieve its file paths
- files.extend(self.github_get_all_file_paths(content.path))
+ files.extend(self.github_get_all_file_paths(repo_name, content.path))
else:
# If it's a file, add its path to the list
files.append(content.path)