mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Clarify prompts
This commit is contained in:
@@ -39,6 +39,7 @@ def clarify(ai: AI, dbs: DBs):
|
|||||||
messages = ai.next(messages, user)
|
messages = ai.next(messages, user)
|
||||||
|
|
||||||
if messages[-1]["content"].strip().lower().startswith("no"):
|
if messages[-1]["content"].strip().lower().startswith("no"):
|
||||||
|
print(" Nothing more to clarify.")
|
||||||
break
|
break
|
||||||
|
|
||||||
print()
|
print()
|
||||||
@@ -157,13 +158,17 @@ def execute_entrypoint(ai, dbs):
|
|||||||
print("Ok, not executing the code.")
|
print("Ok, not executing the code.")
|
||||||
return []
|
return []
|
||||||
print("Executing the code...")
|
print("Executing the code...")
|
||||||
|
print()
|
||||||
print(
|
print(
|
||||||
"\033[92m" # green color
|
"\033[92m" # green color
|
||||||
+ "Note: If it does not work as expected, please consider running the code'"
|
+ "Note: If it does not work as expected, consider running the code"
|
||||||
+ " in another way than above."
|
+ " in another way than above."
|
||||||
+ "\033[0m"
|
+ "\033[0m"
|
||||||
)
|
)
|
||||||
print()
|
print()
|
||||||
|
print("You can press ctrl+c *once* to stop the execution.")
|
||||||
|
print()
|
||||||
|
|
||||||
subprocess.run("bash run.sh", shell=True, cwd=dbs.workspace.path)
|
subprocess.run("bash run.sh", shell=True, cwd=dbs.workspace.path)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
@@ -270,7 +275,7 @@ STEPS = {
|
|||||||
execute_entrypoint,
|
execute_entrypoint,
|
||||||
],
|
],
|
||||||
Config.USE_FEEDBACK: [use_feedback, gen_entrypoint, execute_entrypoint],
|
Config.USE_FEEDBACK: [use_feedback, gen_entrypoint, execute_entrypoint],
|
||||||
Config.EXECUTE_ONLY: [gen_entrypoint, execute_entrypoint],
|
Config.EXECUTE_ONLY: [execute_entrypoint],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Future steps that can be added:
|
# Future steps that can be added:
|
||||||
|
|||||||
Reference in New Issue
Block a user