Skip to content

benzookapi/github-code-evaluator-with-open-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. npm install

  2. add enviromental variables

// https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps
export MY_GITHUB_API_VERSION=2022-11-28
export MY_GITHUB_CLIENT_ID=YOUR_ID
export MY_GITHUB_CLIENT_SECRET=YOUR_SECRET

// https://docs.github.com/en/rest/search#search-repositories
export MY_GITHUB_MAX_COUNT=100

// https://platform.openai.com/docs/api-reference/authentication
export MY_OPENAI_API_KEY=YOUR_KEY

// https://www.mongodb.com/docs/manual/reference/connection-string/
export MY_MONGO_DB_NAME=YOUR_NAME
export MY_MONGO_URL=YOUR_MONGO_DB_URL (e.g. mongodb://my_db_id:my_db_password@my_company_db.com:9999/my_db_1)

  1. Set up a ppublic URL like ngrok linked to localhost:3000 for your GitHub application URL and callback (the callback nedds to be YOUR_APP_URL/result).

  2. npm start

  3. access YOUR_PUBLIC_URL (e.g. https://********.jp.ngrok.io)

Next Step

  • Add OpenAI model tuning
  • Add Google search

About

Search codes in GitHub and evaluate them with OpenAI chats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published