mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
clean up
This commit is contained in:
@@ -146,7 +146,7 @@ class Developer(Agent):
|
||||
return { "success": True }
|
||||
elif should_rerun_command == 'YES':
|
||||
cli_response, llm_response = execute_command_and_check_cli_response(test_command['command'], test_command['timeout'], convo)
|
||||
print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! LLM response: ' + llm_response)
|
||||
logger.info('After running command llm_response: ' + llm_response)
|
||||
if llm_response == 'NEEDS_DEBUGGING':
|
||||
print(red(f'Got incorrect CLI response:'))
|
||||
print(cli_response)
|
||||
@@ -308,6 +308,7 @@ class Developer(Agent):
|
||||
convo=iteration_convo,
|
||||
is_root_task=True)
|
||||
|
||||
logger.info('response: %s', response)
|
||||
user_feedback = response['user_input'] if 'user_input' in response else None
|
||||
if user_feedback == 'continue':
|
||||
return { "success": True, "user_input": user_feedback }
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
{{ cli_response }}
|
||||
|
||||
If the command was successfully executed, respond with `DONE`. If it wasn't, respond with `NEEDS_DEBUGGING` and single line explanation.
|
||||
If the command was successfully executed, respond with `DONE`. If it wasn't, respond with `NEEDS_DEBUGGING`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
How can a human user test if this task was completed successfully? If you specify a command that needs to be run or give example, be very specific. You don't want the user to have to think anything through but rather that they jsut follow your instructions.
|
||||
How can a human user test if this task was completed successfully? If you specify a command that needs to be run or give example, be very specific. You don't want the user to have to think anything through but rather that they just follow your instructions.
|
||||
|
||||
!IMPORTANT!
|
||||
In case the task can be tested by making an API request, do not suggest how can a request be made with Postman but rather write a full cURL command that the user can just run.
|
||||
|
||||
Reference in New Issue
Block a user