refactor: Add optional epoch parameter to generate_batch endpoint

This commit is contained in:
Andreas Koepf 2025-02-22 20:24:33 +00:00 committed by Andreas Koepf (aider)
parent e4102a44f6
commit 1864a54d53

View file

@ -74,7 +74,7 @@ def create_app(config: ServerConfig) -> FastAPI:
return {"status": "deleted"}
@app.get("/experiments/{name}/batch", response_model=BatchResponse)
async def generate_batch(name: str, base_index: int, batch_size: int):
async def generate_batch(name: str, base_index: int, batch_size: int, epoch: int = 0):
"""Generate a batch of raw entries"""
# Validate parameters
if base_index < 0: