Skip to content

Commit

Permalink
fixing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
EcZachly committed Jun 20, 2024
1 parent 76f6d02 commit ba24bb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
openai
PyGithub
9 changes: 0 additions & 9 deletions src/generate_comment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import sys
import requests
import boto3
from util import get_logger, get_api_key, get_git_creds, get_changed_files
from openai import OpenAI
from github import Github
Expand All @@ -21,14 +20,6 @@ def get_pr_files(pr_number):
return changes


def download_from_s3(s3_bucket: str, s3_path: str, local_path: str):
s3 = boto3.client('s3')
try:
s3.download_file(s3_bucket, s3_path, local_path)
except Exception as e:
raise Exception(f"Failed to download from S3: {e}")


def get_feedback(filename: str, system_prompt: str, user_prompt: str) -> str:
comment = ''
response = client.chat.completions.create(
Expand Down
4 changes: 4 additions & 0 deletions src/python_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

hello = 'world'

print(hello)

0 comments on commit ba24bb1

Please sign in to comment.