mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 04:35:17 +01:00
refactor: Refactor loop for improved efficiency and readabilit
This commit is contained in:
@@ -34,14 +34,9 @@ def pretty_print_conversation(messages):
|
|||||||
formatted_messages.append(role_to_message[message["role"]])
|
formatted_messages.append(role_to_message[message["role"]])
|
||||||
|
|
||||||
for formatted_message in formatted_messages:
|
for formatted_message in formatted_messages:
|
||||||
print(
|
role = messages[formatted_messages.index(formatted_message)]["role"]
|
||||||
colored(
|
color = role_to_color[role]
|
||||||
formatted_message,
|
print(colored(formatted_message, color))
|
||||||
role_to_color[
|
|
||||||
messages[formatted_messages.index(formatted_message)]["role"]
|
|
||||||
],
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
|
|||||||
Reference in New Issue
Block a user