Initialize vision LLM router at app and celery startup

This commit is contained in:
CREDO23 2026-04-07 19:21:10 +02:00
parent 6d85821ae9
commit 4a675b64f4
2 changed files with 13 additions and 2 deletions

View file

@ -18,10 +18,15 @@ def init_worker(**kwargs):
This ensures the Auto mode (LiteLLM Router) is available for background tasks
like document summarization and image generation.
"""
from app.config import initialize_image_gen_router, initialize_llm_router
from app.config import (
initialize_image_gen_router,
initialize_llm_router,
initialize_vision_llm_router,
)
initialize_llm_router()
initialize_image_gen_router()
initialize_vision_llm_router()
# Get Celery configuration from environment