Skip to content

Commit

Permalink
fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluma committed Jul 29, 2024
1 parent c55e43a commit 452a045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion private_gpt/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async def bind_injector_to_request(request: Request) -> None:

# Add LlamaIndex simple observability
global_handler = create_global_handler("simple")
LlamaIndexSettings.callback_manager = CallbackManager([global_handler])
if global_handler is not None:
LlamaIndexSettings.callback_manager = CallbackManager([global_handler])

settings = root_injector.get(Settings)
if settings.server.cors.enabled:
Expand Down

0 comments on commit 452a045

Please sign in to comment.