From 9bd0b2650e101806f0e70c6b2ac28327002530d0 Mon Sep 17 00:00:00 2001 From: gharbat Date: Sun, 10 Dec 2023 13:09:01 +0100 Subject: [PATCH] Code format --- llm-server/app.py | 8 +++++--- llm-server/entities/action_entity.py | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/llm-server/app.py b/llm-server/app.py index 99f590aef..5ac57c79a 100644 --- a/llm-server/app.py +++ b/llm-server/app.py @@ -16,6 +16,7 @@ from shared.models.opencopilot_db import create_database_schema from flask import jsonify from utils.db import Database + # from routes.uploads.celery_service import celery db_instance = Database() mongo = db_instance.get_db() @@ -26,8 +27,8 @@ app = Flask(__name__) app.url_map.strict_slashes = False -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(workflow, url_prefix="/backend/flows") # todo delete this one once the new flows are ready +app.register_blueprint(flow, url_prefix="/backend/flows") 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") @@ -38,11 +39,12 @@ app.config.from_object(Config) + @app.route('/healthcheck') def health_check(): info = mongo.client # c_info = celery.connection() - + # print(c_info) return jsonify(status='OK', servers={"mongo": info.options.pool_options.max_pool_size}) diff --git a/llm-server/entities/action_entity.py b/llm-server/entities/action_entity.py index 656ac5664..a8a7b020f 100644 --- a/llm-server/entities/action_entity.py +++ b/llm-server/entities/action_entity.py @@ -1,5 +1,3 @@ -import datetime -import uuid from typing import Optional, Dict from pydantic import BaseModel