Skip to content

Commit

Permalink
fix: Updated file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravpanda committed Apr 1, 2024
1 parent 5e92e74 commit 9da151b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
21 changes: 20 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# Github App Configurataion
GITHUB_API_BASE_URL=https://api.github.com
GITHUB_APP_ID=
GITHUB_APP_WEBHOOK_SECRET=
GITHUB_APP_WEBHOOK_SECRET=

# LLM SETUPS
## OPENAI SETUP
OPENAI_API_KEY=
OPENAI_ORGANIZATION=
### [OPTIONAL]
OPENAI_API_BASE=

## Azure
AZURE_API_KEY=
AZURE_API_BASE=
AZURE_API_VERSION=


## Anthropic
ANTHROPIC_API_KEY=

## Google Gemini
GEMINI_API_KEY=
4 changes: 2 additions & 2 deletions api/github_helper/installation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import utils
from api.github_helper import utils
import requests
from endpoints import GITHUB_ENDPOINTS
from api.github_helper.endpoints import GITHUB_ENDPOINTS


def get_installations():
Expand Down
2 changes: 1 addition & 1 deletion api/github_helper/pull_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from utils import get_text_from_html_url
from github_helper.installation import get_installation_access_token
from api.github_helper.installation import get_installation_access_token
from codecheck.actions.reviews import review_pull_request


Expand Down
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import FastAPI, Request, BackgroundTasks
from fastapi.responses import JSONResponse
from github_helper.pull_requests import process_pull_request
from api.github_helper.pull_requests import process_pull_request

app = FastAPI()

Expand Down
6 changes: 3 additions & 3 deletions codecheck/actions/reviews.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from helpers import output, parser
from llms.provider import chat_completion
from llms.prompts import CODE_REVIEW_PROMPT, CODE_REVIEW_SYSTEM_PROMPT
from codecheck.helpers import output, parser
from codecheck.llms.provider import chat_completion
from codecheck.llms.prompts import CODE_REVIEW_PROMPT, CODE_REVIEW_SYSTEM_PROMPT
import requests


Expand Down
2 changes: 1 addition & 1 deletion codecheck/llms/provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from litellm import completion
from prompts import BASIC_SYSTEM_PROMPT
from codecheck.llms.prompts import BASIC_SYSTEM_PROMPT


def chat_completion(
Expand Down

0 comments on commit 9da151b

Please sign in to comment.