Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat with Github FastAPI #158

Merged
merged 6 commits into from
Mar 19, 2024
Merged

Chat with Github FastAPI #158

merged 6 commits into from
Mar 19, 2024

Conversation

bryannho
Copy link
Contributor

@bryannho bryannho commented Mar 18, 2024

Addresses #148

  • Similar to panel/chat-with-github but using FastAPI and Celery. Only the backend API, no frontend included.
  • Downloads and parses multiple repos at once using /scrape, returns parsing progress using /status, and answers questions using /ask

I've also included a CLI app test.py to help test the API (it just makes sending requests easier):

  • python test.py scrape <owner> <repo-name> <branch> to download a repo
  • python test.py status <repo-id> to check the status of a download. repo-id is provided when /scrape is called.
  • python test.py ask <repo-id> <question> to ask a question about a repo

App is deployed at: https://plain-violet-6921.ploomberapp.io/

@bryannho bryannho marked this pull request as ready for review March 18, 2024 23:10
@bryannho bryannho requested a review from edublancas as a code owner March 18, 2024 23:10
@edublancas edublancas merged commit 6576cb4 into main Mar 19, 2024
2 checks passed
@edublancas edublancas deleted the chat-with-gh-api branch March 19, 2024 16:01
@edublancas
Copy link
Contributor

great work!

btw, fastapi automatically generates docs, and an interactive UI, you can use it to test your API: https://plain-violet-6921.ploomberapp.io/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants