chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-01-09 20:44:31 +04:00
parent 74c4af6e11
commit 7a7a0c423b
62 changed files with 126 additions and 10 deletions

View File

@@ -362,7 +362,9 @@ class FeedbackTable:
d = start_date + timedelta(days=i)
date_str = d.strftime("%Y-%m-%d")
counts = daily_counts.get(date_str, {"won": 0, "lost": 0})
result.append(ModelHistoryEntry(date=date_str, won=counts["won"], lost=counts["lost"]))
result.append(
ModelHistoryEntry(date=date_str, won=counts["won"], lost=counts["lost"])
)
return result

View File

@@ -51,7 +51,9 @@ router = APIRouter()
import os
EMBEDDING_MODEL_NAME = os.environ.get("AUXILIARY_EMBEDDING_MODEL", "TaylorAI/bge-micro-v2")
EMBEDDING_MODEL_NAME = os.environ.get(
"AUXILIARY_EMBEDDING_MODEL", "TaylorAI/bge-micro-v2"
)
_embedding_model = None
@@ -258,8 +260,6 @@ async def get_leaderboard(
return LeaderboardResponse(entries=entries)
@router.get("/leaderboard/{model_id}/history", response_model=ModelHistoryResponse)
async def get_model_history(
model_id: str,