mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Add flow to ask for consent to share learnings – finally (#471)
* Consent flow * Fix pre-commit * Fix ruff * Remove codespell * Remove codespell fully * whitespace
This commit is contained in:
@@ -8,6 +8,7 @@ import typer
|
||||
from gpt_engineer.ai import AI, fallback_model
|
||||
from gpt_engineer.collect import collect_learnings
|
||||
from gpt_engineer.db import DB, DBs, archive
|
||||
from gpt_engineer.learning import collect_consent
|
||||
from gpt_engineer.steps import STEPS, Config as StepsConfig
|
||||
|
||||
app = typer.Typer()
|
||||
@@ -57,7 +58,8 @@ def main(
|
||||
messages = step(ai, dbs)
|
||||
dbs.logs[step.__name__] = json.dumps(messages)
|
||||
|
||||
collect_learnings(model, temperature, steps, dbs)
|
||||
if collect_consent():
|
||||
collect_learnings(model, temperature, steps, dbs)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user