From 1d2db0eb92dbf84dffccf745520f4977a2b855d4 Mon Sep 17 00:00:00 2001 From: gharbat Date: Tue, 5 Dec 2023 03:06:20 +0100 Subject: [PATCH] Rename flows --- llm-server/app.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llm-server/app.py b/llm-server/app.py index 16950e011..4f189ddf2 100644 --- a/llm-server/app.py +++ b/llm-server/app.py @@ -1,6 +1,5 @@ from dotenv import load_dotenv from flask import Flask -from opencopilot_db import create_database_schema from routes._swagger.controller import _swagger from routes.chat.chat_controller import chat_workflow @@ -14,8 +13,6 @@ from utils.config import Config from utils.vector_store_setup import init_qdrant_collections from shared.models.opencopilot_db import create_database_schema -from utils.get_logger import structlog - load_dotenv() @@ -23,7 +20,8 @@ app = Flask(__name__) app.url_map.strict_slashes = False -app.register_blueprint(workflow, url_prefix="/backend/flows-old") +app.register_blueprint(workflow, url_prefix="/backend/flows") # todo delete this one once the new flows are ready +app.register_blueprint(flow, url_prefix="/backend/flows-new") app.register_blueprint(_swagger, url_prefix="/backend/swagger_api") app.register_blueprint(chat_workflow, url_prefix="/backend/chat") app.register_blueprint(copilot, url_prefix="/backend/copilot") @@ -31,7 +29,6 @@ app.register_blueprint(datasource_workflow, url_prefix="/backend/data_sources") app.register_blueprint(prompt_template_workflow, url_prefix="/backend/prompt-templates") app.register_blueprint(prompt_workflow, url_prefix="/backend/prompts") -app.register_blueprint(flow, url_prefix="/backend/flows") # todo rename app.config.from_object(Config)