- Add functionality to add a default dictionary for configuration fields - Correct entitlement processing - Remove get_template functionality from ModelVariables, define it directly with LLM model definition in configuration file.
34 lines
947 B
Python
34 lines
947 B
Python
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_migrate import Migrate
|
|
from flask_bootstrap import Bootstrap
|
|
from flask_security import Security
|
|
from flask_login import LoginManager
|
|
from flask_cors import CORS
|
|
from flask_jwt_extended import JWTManager
|
|
from flask_session import Session
|
|
from flask_wtf import CSRFProtect
|
|
from flask_restx import Api
|
|
from prometheus_flask_exporter import PrometheusMetrics
|
|
|
|
from .utils.cache.eveai_cache_manager import EveAICacheManager
|
|
from .utils.simple_encryption import SimpleEncryption
|
|
from .utils.minio_utils import MinioClient
|
|
|
|
|
|
# Create extensions
|
|
db = SQLAlchemy()
|
|
migrate = Migrate()
|
|
bootstrap = Bootstrap()
|
|
csrf = CSRFProtect()
|
|
security = Security()
|
|
login_manager = LoginManager()
|
|
cors = CORS()
|
|
jwt = JWTManager()
|
|
session = Session()
|
|
api_rest = Api()
|
|
simple_encryption = SimpleEncryption()
|
|
minio_client = MinioClient()
|
|
metrics = PrometheusMetrics.for_app_factory()
|
|
cache_manager = EveAICacheManager()
|
|
|