| 123456789101112131415 |
- from fastapi import FastAPI
- 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
- app.include_router(router, prefix="/models", tags=["models"])
- return app
|