Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create .gpt-pilot directory, save project info & chat log #175

Merged
merged 10 commits into from
Oct 12, 2023

Conversation

nalbion
Copy link
Contributor

@nalbion nalbion commented Oct 11, 2023

As per #121

This gives a much clearer view of what's going on behind the scenes. From here we can better adjust the prompts to reduce token usage (#38) and identify the source of other issues.

image

I'd like to see this .gpt-pilot/project.yaml become the new source for resuming projects - that way people could add/edit/remove user_stories etc.

image

@nalbion nalbion linked an issue Oct 11, 2023 that may be closed by this pull request


class Project:
def __init__(self, args, name=None, description=None, user_stories=None, user_tasks=None, architecture=None,
development_plan=None, current_step=None, ipc_client_instance=None):
development_plan=None, current_step=None, ipc_client_instance=None, enable_dot_pilot_gpt=True):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be False by default?

@@ -69,6 +70,11 @@ def __init__(self, args, name=None, description=None, user_stories=None, user_ta
self.architecture = architecture
# if development_plan is not None:
# self.development_plan = development_plan
self.dot_pilot_gpt = DotGptPilot(log_chat_completions=enable_dot_pilot_gpt)
Copy link
Member

@LeonOstrez LeonOstrez Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do this "if enable_dot_pilot_gpt" ? Just to make sure it doesn't affect regular user at all. To be more clear something like:

if enable_dot_pilot_gpt:
    self.dot_pilot_gpt = DotGptPilot(log_chat_completions=enable_dot_pilot_gpt)


def set_root_path(self, root_path: str):
self.root_path = root_path
self.dot_pilot_gpt.with_root_path(root_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would also add check if enable_dot_pilot_gpt to this line

@@ -13,6 +13,7 @@ psycopg2-binary==2.9.6
python-dotenv==1.0.0
python-editor==1.0.4
pytest==7.4.2
pyyaml==6.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this dependency now?

@@ -13,6 +13,7 @@ psycopg2-binary==2.9.6
python-dotenv==1.0.0
python-editor==1.0.4
pytest==7.4.2
pyyaml==6.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this dependency now?

@LeonOstrez LeonOstrez merged commit 217893b into main Oct 12, 2023
@senko senko deleted the feature/121-dot_gpt-pilot-folder branch December 8, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create .gpt-pilot folder
2 participants