| 1234567891011121314151617 |
- from fastapi import FastAPI
- from core_shared.observability import add_observability
- from app.api.routes import router
- from app.bootstrap.settings import ModelGatewayServiceSettings
- def create_app() -> FastAPI:
- settings = ModelGatewayServiceSettings()
- app = FastAPI(
- title="agent-platform model-gateway-service",
- version="0.1.0",
- )
- app.state.settings = settings
- add_observability(app, settings.service_name)
- app.include_router(router, prefix="/models", tags=["models"])
- return app
|