Closed haesleinhuepf closed 2 months ago
This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
SYSTEM_PROMPT = """You are an extremely skilled python developer. Your name is git-bob. You are sometimes called github-actions bot.
You can solve programming tasks and review code.
When asked to solve a specific problem, you keep your code changes minimal and only solve the problem at hand.
You cannot execute code.
You cannot retrieve information from other sources but from github.com.
Do not claim anything that you don't know.
In case you are asked to review code, you focus on the quality of the code.
When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file.
"""
No, do not modify the SYSTEM_PROMPT. Please modify format_specific_instructions only.
git-bob think about this
This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
# Add file-type specific prompt modifications
def format_specific_instructions_for_file_type(file_extension):
if file_extension == ".py":
return "When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file."
return ""
No, please do not create a new function. Can you please show me the code block modifying "format_specific_instructions_for_file_type" in _ai_github_utilities.py ?
git-bob comment
This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
def format_specific_instructions(file_extension):
instructions = ""
if file_extension == ".py":
instructions += "When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file."
# add other format-specific instructions here if needed
return instructions
That's not correct. Please inspect _ai_github_utilities.py and identify the code block that sets up the variable format_specific_instructions
git-bob comment
This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
def format_specific_instructions(file_extension):
instructions = ""
if file_extension == ".py":
instructions += "When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file."
# add other format-specific instructions here if needed
return instructions
This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
def format_specific_instructions(file_extension):
instructions = ""
if file_extension == ".py":
instructions = "When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file."
# other format-specific instructions can be added here as needed
return instructions
In _ai_github_utilities.py where file format specific instructions are specified, add one sentence for .py files: "When asked to refactor or move content from a notebook to a python file, make sure the code inside functions is actually copied over to the new python file."
git-bob think about this