Skip to content

Commit

Permalink
Prettify output
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOsika committed Jun 3, 2023
1 parent de046d3 commit 65a5bab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ def clarify(ai: AI, dbs: DBs):

print()
user = input('(answer in text, or "q" to move on)\n')
print()

if not user or user == 'q':
break

user += '\n\nIs anything else unclear? If yes, only answer in the form: {remaining unclear areas} remaining questions. {Next question}\nIf everything is sufficiently clear, only answer "no".'
user += (
'\n\n'
'Is anything else unclear? If yes, only answer in the form:\n'
'{remaining unclear areas} remaining questions.\n'
'{Next question}\n'
'If everything is sufficiently clear, only answer "no".'
)

print()
return messages
Expand All @@ -48,7 +56,7 @@ def run_clarified(ai: AI, dbs: DBs):
messages[1:]
)
messages = ai.next(messages, dbs.identity['use_qa'])
to_files(messages[-1]['content'], DB(str(dbs.workspace.path)+'_clarified'))
to_files(messages[-1]['content'], dbs.workspace)
return messages


Expand Down

0 comments on commit 65a5bab

Please sign in to comment.