-
Notifications
You must be signed in to change notification settings - Fork 3
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
aider #437
Comments
This message was generated by git-bob (version: 0.15.1, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully. To integrate def solve_github_issue(repository, issue, llm_model, prompt_function, base_branch=None):
# Integrate aider functionality
aider_result = aider.analyze_issue(repository, issue)
# Process aider_result further in the function logic
# ... Ensure |
I found this code example for using aideR:
Could this be integrated into create_or_modify_file ? git-bob answer |
This message was generated by git-bob (version: 0.15.1, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully. To integrate the provided from aider.coders import Coder
from aider.models import Model
def create_or_modify_file(repository, issue, filename, branch_name, issue_summary, prompt_function, number_of_attempts:int=3):
Log().log(f"-> create_or_modify_file({repository}, {issue}, {filename}, {branch_name})")
from ._utilities import Config
model = Model("gpt-4-turbo")
coder = Coder.create(main_model=model, fnames=[filename])
created_files = {}
for attempt in range(number_of_attempts):
an_error_happened = False
file_exists = Config.git_utilities.check_if_file_exists(repository, branch_name, filename)
coder_instruction = "modify" if file_exists else "create"
coder.run(f"{coder_instruction} the file {filename} for issue #{issue}.")
# additional logic here to handle the file content as needed
# break the loop if no error occurred
if not an_error_happened:
break
print(f"An error happened. Retrying... {attempt+1}/{number_of_attempts}")
return created_files This modification initializes a |
git-bob comment on how to integrate aider in functions such as
solve_github_issue
orcreate_or_modify_file
in_ai_github_utilities.py
.The text was updated successfully, but these errors were encountered: