Spaces:
Running
Running
Lode Nachtergaele
commited on
Commit
·
9dd6cd2
1
Parent(s):
e0faed4
limit the content grom github repo to max token window length
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def git_github_repo_summary(user: str, repo: str) -> str:
|
|
28 |
summary: a string with a summary of the github repository repo of user
|
29 |
"""
|
30 |
summary, tree, content = ingest(f"https://github.com/{user}/{repo}")
|
31 |
-
return content
|
32 |
|
33 |
|
34 |
@tool
|
|
|
28 |
summary: a string with a summary of the github repository repo of user
|
29 |
"""
|
30 |
summary, tree, content = ingest(f"https://github.com/{user}/{repo}")
|
31 |
+
return content[: 16_000 - 2_096]
|
32 |
|
33 |
|
34 |
@tool
|