INNER CODE UNIT · Python
retrieve
pathwaycom/llm-app · serviette/frontend/main.py:137
async def retrieve(request: Request) -> JSONResponse:
return await _proxy("retrieve", request)
return app
def run(config: ServietteConfig) -> None:
"""Start uvicorn with the configured frontend host/port (used by the CLI)."""
import uvicorn
config.for_frontend()
fe = config.frontend
assert fe is not None # guaranteed by for_frontend()
app = create_app(config)
uvicorn.run(app, host=fe.host, port=fe.port)