mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-04 10:20:21 +01:00
Fix and hardcode 'app' to be set as a type
This commit is contained in:
@@ -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('/')
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user