Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sivang committed Apr 1, 2024
1 parent 35e782c commit 23581b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions agit/openai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def translate_to_git_command(natural_language, explain, context=None):
"role": "system",
"content": f"You are an expert git revision control system mentor, you translate natural language to a "
f"coherent git command. You will only return commands that are for the git RCS tool and refuse "
f"commands to other software. You will also return a short description of the command to the user. "
f"commands to other software. You will also return a short description of the command to the user. ",
},
{
"role": "user",
Expand All @@ -82,8 +82,7 @@ async def translate_to_git_command(natural_language, explain, context=None):
f"alwys use it when producing your answers."
f"Context: {context_summary}"
f"Do not return language markdown such as ```json, but just the actual text of the items inside JSON. Do not"
f"quote the JSON text from the outside using any type quotes as this is redundant."

f"quote the JSON text from the outside using any type quotes as this is redundant.",
},
]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __eq__(self, other):
@patch("agit.main.execute_git_command")
@patch("agit.main.is_destructive")
async def test_main_with_translate_command(
mocked_is_destructive, mocked_execute_git, mocked_translate, mocked_args
mocked_is_destructive, mocked_execute_git, mocked_translate, mocked_args
):
# Mocking the return values
mocked_execute_git.return_value = config.mocked_exec_output
Expand Down

0 comments on commit 23581b1

Please sign in to comment.