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:
@@ -1,5 +1,4 @@
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
from typing import List
|
||||
|
||||
@@ -23,10 +22,6 @@ def send_learning(learning: Learning):
|
||||
|
||||
|
||||
def collect_learnings(model: str, temperature: float, steps: List[Step], dbs: DBs):
|
||||
if os.environ.get("COLLECT_LEARNINGS_OPT_IN") in ["false", "1"]:
|
||||
print("COLLECT_LEARNINGS_OPT_IN is set to false, not collecting learning")
|
||||
return
|
||||
|
||||
learnings = extract_learning(
|
||||
model, temperature, steps, dbs, steps_file_hash=steps_file_hash()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user