mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Execute step
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import re
|
||||
from typing import List, Tuple
|
||||
from gpt_engineer.db import DB
|
||||
|
||||
|
||||
def parse_chat(chat): # -> List[Tuple[str, str]]:
|
||||
def parse_chat(chat) -> List[Tuple[str, str]]:
|
||||
# Get all ``` blocks
|
||||
regex = r"```(.*?)```"
|
||||
|
||||
@@ -19,7 +21,7 @@ def parse_chat(chat): # -> List[Tuple[str, str]]:
|
||||
return files
|
||||
|
||||
|
||||
def to_files(chat, workspace):
|
||||
def to_files(chat: str, workspace: DB):
|
||||
workspace["all_output.txt"] = chat
|
||||
|
||||
files = parse_chat(chat)
|
||||
|
||||
Reference in New Issue
Block a user