This commit is contained in:
Nicholas Albion
2023-09-11 22:16:22 +10:00
parent a94cbf9209
commit e9e5532295
2 changed files with 1 additions and 3 deletions

View File

@@ -231,10 +231,8 @@ def save_development_step(project, prompt_path, prompt_data, messages, llm_respo
development_step = hash_and_save_step(DevelopmentSteps, project.args['app_id'], hash_data_args, data_fields, "Saved Development Step")
project.checkpoints['last_development_step'] = development_step
project.save_files_snapshot(development_step.id)
return development_step

View File

@@ -168,7 +168,7 @@ class Project:
Save a file.
Args:
data (dict): File data.
data: { name: 'hello.py', path: 'path/to/hello.py', content: 'print("Hello!")' }
"""
# TODO fix this in prompts
if ' ' in data['name'] or '.' not in data['name']: