Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Rename flows
Browse files Browse the repository at this point in the history
  • Loading branch information
gharbat committed Dec 5, 2023
1 parent 927735d commit 1d2db0e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions llm-server/app.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,24 +13,22 @@
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()

create_database_schema()

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")
app.register_blueprint(upload_controller, url_prefix="/backend/uploads")
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)

Expand Down

0 comments on commit 1d2db0e

Please sign in to comment.