ChatGPT Access to GitHub Repositories — Part 2

David Such
10 min readDec 19, 2023

In Part 1, we identified two challenges with using uploaded data in Knowledge for ChatGPT:

  1. Size and File Number Constraints: Users who engage in serious or extensive work with ChatGPT will likely encounter limitations in terms of the size and the number of files they can upload. This constraint can be a significant hindrance for comprehensive or large-scale projects.
  2. Inefficiency with Changing Data: The process of managing dynamic or frequently changing data in uploaded files is cumbersome. Users need to manually delete and re-upload files every time there’s a change in the data, which is particularly inefficient for data that is in continuous development or modification, such as code or ongoing writing projects.

To address these issues, the we suggested an alternative approach: utilizing an API to access files stored online. In particular, using an OpenAPI schema to access Github repositories. Part 2 will explain how to list the public repositories of a user and retrieve the files contained within.

Figure 1. Using an OpenAPI Schema to Access GitHub [Image Credit: DALL-E]

Listing the Public…

--

--

David Such

Reefwing Software · Embedded Systems Engineer · iOS & AI Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control