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

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
gharbat committed Dec 10, 2023
1 parent b6f57de commit 9bd0b26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions llm-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
Expand All @@ -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})

Expand Down
2 changes: 0 additions & 2 deletions llm-server/entities/action_entity.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import datetime
import uuid
from typing import Optional, Dict

from pydantic import BaseModel
Expand Down

0 comments on commit 9bd0b26

Please sign in to comment.