Find answers from the community

Updated 3 months ago

there is an error in the documentation,

there is an error in the documentation, the exact code shown in the documentation wont work.

Plain Text
%env GITHUB_TOKEN=github_pat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
github_token = os.environ.get("GITHUB_TOKEN")
owner = "jerryjliu"
repo = "llama_index"
branch = "main"

documents = GithubRepositoryReader(
    github_token=github_token,
    owner=owner,
    repo=repo,
    use_parser=False,
    verbose=False,
    ignore_directories=["examples"],
).load_data(branch=branch)


Plain Text
TypeError: GithubRepositoryReader.__init__() got an unexpected keyword argument 'github_token'


https://docs.llamaindex.ai/en/stable/examples/data_connectors/GithubRepositoryReaderDemo/
L
Y
5 comments
I welcome a PR to update this -- been meaning to get to it
doesnt know what is a PR but i assume its someone that will fix it.

By the way, i encoutered this error because i realize the code in ActiveLoop course is outdated. I wanted to fix it using our latest library import naming.
A PR is a pull-request -- basically anyone can contribute changes to code/docs, and then it gets approved
Add a reply
Sign up and join the conversation on Discord