- eveai_chat_client updated to retrieve static files from the correct (bunny.net) location when a STATIC_URL is defined.

- Defined locations for crewai crew memory. This failed in k8s.
- Redis connection for pub/sub in ExecutionProgressTracker adapted to conform to TLS-enabled connections
This commit is contained in:
Josako
2025-09-12 10:18:43 +02:00
parent a325fa5084
commit 42cb1de0fd
15 changed files with 306 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
import json
import uuid
from flask import Blueprint, render_template, request, session, current_app, jsonify, Response, stream_with_context
from flask import Blueprint, render_template, request, session, current_app, jsonify, Response, stream_with_context, \
url_for
from sqlalchemy.exc import SQLAlchemyError
from common.extensions import db, content_manager
@@ -110,6 +111,11 @@ def chat(magic_link_code):
if isinstance(specialist_config, str):
specialist_config = json.loads(specialist_config)
static_url = current_app.config.get('STATIC_URL')
current_app.logger.debug(f"STATIC_URL: {static_url}")
if not static_url:
static_url = url_for('static', filename='')
return render_template('chat.html',
tenant=tenant,
tenant_make=tenant_make,
@@ -117,7 +123,8 @@ def chat(magic_link_code):
customisation=customisation,
messages=[],
settings=settings,
config=current_app.config
config=current_app.config,
static_url=static_url
)
except Exception as e: