app.py 527 B

1234567891011121314151617
  1. from fastapi import FastAPI
  2. from core_shared.observability import add_observability
  3. from app.api.routes import router
  4. from app.bootstrap.settings import ModelGatewayServiceSettings
  5. def create_app() -> FastAPI:
  6. settings = ModelGatewayServiceSettings()
  7. app = FastAPI(
  8. title="agent-platform model-gateway-service",
  9. version="0.1.0",
  10. )
  11. app.state.settings = settings
  12. add_observability(app, settings.service_name)
  13. app.include_router(router, prefix="/models", tags=["models"])
  14. return app