app.py 421 B

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