feat: add site assistant component for guided tool selection
- Introduced SiteAssistant component to assist users in selecting the right tools based on their queries. - Integrated assistant into the main App component. - Implemented message handling and storage for user-assistant interactions. - Added quick prompts for common user queries related to tools. - Enhanced ToolLandingPage and DownloadButton components with SharePanel for sharing tool results. - Updated translations for new assistant features and sharing options. - Added API methods for chat functionality with the assistant, including streaming responses.
This commit is contained in:
@@ -8,6 +8,7 @@ from app.extensions import cors, limiter, talisman, init_celery
|
||||
from app.services.account_service import init_account_db
|
||||
from app.services.rating_service import init_ratings_db
|
||||
from app.services.ai_cost_service import init_ai_cost_db
|
||||
from app.services.site_assistant_service import init_site_assistant_db
|
||||
|
||||
|
||||
def create_app(config_name=None):
|
||||
@@ -77,6 +78,7 @@ def create_app(config_name=None):
|
||||
init_account_db()
|
||||
init_ratings_db()
|
||||
init_ai_cost_db()
|
||||
init_site_assistant_db()
|
||||
|
||||
# Register blueprints
|
||||
from app.routes.health import health_bp
|
||||
@@ -103,6 +105,7 @@ def create_app(config_name=None):
|
||||
from app.routes.html_to_pdf import html_to_pdf_bp
|
||||
from app.routes.pdf_ai import pdf_ai_bp
|
||||
from app.routes.rating import rating_bp
|
||||
from app.routes.assistant import assistant_bp
|
||||
|
||||
app.register_blueprint(health_bp, url_prefix="/api")
|
||||
app.register_blueprint(auth_bp, url_prefix="/api/auth")
|
||||
@@ -128,5 +131,6 @@ def create_app(config_name=None):
|
||||
app.register_blueprint(html_to_pdf_bp, url_prefix="/api/convert")
|
||||
app.register_blueprint(pdf_ai_bp, url_prefix="/api/pdf-ai")
|
||||
app.register_blueprint(rating_bp, url_prefix="/api/ratings")
|
||||
app.register_blueprint(assistant_bp, url_prefix="/api/assistant")
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user