- Move from OpenAI to Mistral Embeddings

- Move embedding model settings from tenant to catalog
- BUG: error processing configuration for chunking patterns in HTML_PROCESSOR
- Removed eveai_chat from docker-files and nginx configuration, as it is now obsolete
- BUG: error in Library Operations when creating a new default RAG library
- BUG: Added public type in migration scripts
- Removed SocketIO from all code and requirements.txt
This commit is contained in:
Josako
2025-02-25 11:17:19 +01:00
parent c037d4135e
commit 55a89c11bb
34 changed files with 457 additions and 444 deletions

View File

@@ -5,7 +5,7 @@ from flask_jwt_extended import get_jwt_identity, verify_jwt_in_request
from sqlalchemy.exc import SQLAlchemyError
from werkzeug.exceptions import HTTPException
from common.extensions import db, api_rest, jwt, minio_client, simple_encryption, cors
from common.extensions import db, api_rest, jwt, minio_client, simple_encryption, cors, cache_manager
import os
import logging.config
@@ -31,7 +31,7 @@ def create_app(config_file=None):
case 'development':
app.config.from_object(get_config('dev'))
case 'production':
app.config.from_object(get_config('prod'))
app.config.from_object(get_config('prod'))
case _:
app.config.from_object(get_config('dev'))
@@ -60,6 +60,9 @@ def create_app(config_file=None):
# Register Request Debugger
register_request_debugger(app)
# Register Cache Handlers
register_cache_handlers(app)
@app.before_request
def check_cors():
if request.method == 'OPTIONS':
@@ -120,6 +123,7 @@ def register_extensions(app):
jwt.init_app(app)
minio_client.init_app(app)
simple_encryption.init_app(app)
cache_manager.init_app(app)
cors.init_app(app, resources={
r"/api/v1/*": {
"origins": "*",
@@ -201,3 +205,8 @@ def register_error_handlers(app):
"message": str(e),
"type": "BadRequestError"
}), 400
def register_cache_handlers(app):
from common.utils.cache.config_cache import register_config_cache_handlers
register_config_cache_handlers(cache_manager)