Fix and hardcode 'app' to be set as a type

This commit is contained in:
Zvonimir Sabljic
2023-08-16 11:34:43 +02:00
parent 58299878e1
commit de922a973e
3 changed files with 3 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ class Project:
.execute())
def get_full_file_path(self, file_path, file_name):
file_path = file_path.replace('./', '', 1).rstrip(file_name)
file_path = file_path.replace('./', '', 1).rsplit(file_name, 1)[0]
if file_path.endswith('/'):
file_path = file_path.rstrip('/')

View File

@@ -44,8 +44,7 @@ class ProductOwner(Agent):
generate_messages_from_description(main_prompt, self.project.args['app_type'], self.project.args['name']))
high_level_summary = convo_project_description.send_message('utils/summary.prompt',
{'conversation': '\n'.join(
[f"{msg['role']}: {msg['content']}" for msg in high_level_messages])})
{'conversation': '\n'.join([f"{msg['role']}: {msg['content']}" for msg in high_level_messages])})
save_progress(self.project.args['app_id'], self.project.current_step, {
"prompt": main_prompt,

View File

@@ -12,6 +12,7 @@ from logger.logger import logger
def ask_for_app_type():
return 'app'
answer = styled_select(
"What type of app do you want to build?",
choices=common.APP_TYPES