code: """FastAPI app creation, logger configuration and main API routes."""
  
  import llama_index
  
  from private_gpt.di import global_injector
  from private_gpt.launcher import create_app
  
  # Add LlamaIndex simple observability
  llama_index.set_global_handler("simple")
  
  app = create_app(global_injector)
  
apis: llama_index.set_global_handler
extract_api: [((217, 257), 'llama_index.set_global_handler', 'llama_index.set_global_handler', (['"""simple"""'], {}), "('simple')\n", (247, 257), False, 'import llama_index\n'), ((265, 292), 'private_gpt.launcher.create_app', 'create_app', (['global_injector'], {}), '(global_injector)\n', (275, 292), False, 'from private_gpt.launcher import create_app\n')]