Removed split_into_bullets + unused imports

This commit is contained in:
Zvonimir Sabljic
2023-07-31 12:29:03 +02:00
parent 345f1658ec
commit 3de4d10fa7
3 changed files with 1 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ from const.function_calls import ARCHITECTURE
from utils.utils import execute_step, find_role_from_step, generate_app_data
from database.database import save_progress, get_progress_steps
from logger.logger import logger
from prompts.prompts import get_additional_info_from_user, execute_chat_prompt
from prompts.prompts import get_additional_info_from_user
from helpers.AgentConvo import AgentConvo

View File

@@ -5,7 +5,6 @@ from helpers.AgentConvo import AgentConvo
from utils.utils import execute_step, find_role_from_step, generate_app_data
from database.database import save_progress, get_progress_steps
from logger.logger import logger
from prompts.prompts import get_additional_info_from_user, execute_chat_prompt
from const.function_calls import FILTER_OS_TECHNOLOGIES, DEVELOPMENT_PLAN
from const.code_execution import MAX_COMMAND_DEBUG_TRIES
from utils.utils import get_os_info

View File

@@ -144,12 +144,5 @@ def execute_step(matching_step, current_step):
return matching_step_index is not None and current_step_index is not None and current_step_index >= matching_step_index
def split_into_bullets(text):
pattern = re.compile(r'\n*\d+\.\s\*\*')
split_text = re.split(pattern, text)
split_text = [bullet for bullet in split_text if bullet] # Remove any empty strings from the list
return split_text
def generate_app_data(args):
return {'app_id': args['app_id'], 'app_type': args['app_type']}