mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
fix: mypy
This commit is contained in:
parent
e3beaaf9d5
commit
c054d3b60c
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ def create_app(root_injector: Injector) -> FastAPI:
|
|||
|
||||
# Add LlamaIndex simple observability
|
||||
global_handler = create_global_handler("simple")
|
||||
LlamaIndexSettings.callback_manager = CallbackManager([global_handler])
|
||||
if global_handler:
|
||||
LlamaIndexSettings.callback_manager = CallbackManager([global_handler])
|
||||
|
||||
settings = root_injector.get(Settings)
|
||||
if settings.server.cors.enabled:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue