mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-03 09:54:58 +01:00
Removed split_into_bullets + unused imports
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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']}
|
||||
|
||||
Reference in New Issue
Block a user