fix: mypy

This commit is contained in:
Javier Martinez 2024-07-29 18:53:51 +02:00
parent c55e43a182
commit 452a045be4
No known key found for this signature in database

View file

@ -37,6 +37,7 @@ def create_app(root_injector: Injector) -> FastAPI:
# Add LlamaIndex simple observability
global_handler = create_global_handler("simple")
if global_handler is not None:
LlamaIndexSettings.callback_manager = CallbackManager([global_handler])
settings = root_injector.get(Settings)