diff --git a/website/src/lib/oasst_api_client.ts b/website/src/lib/oasst_api_client.ts index cd5e1abc..16f8ccd2 100644 --- a/website/src/lib/oasst_api_client.ts +++ b/website/src/lib/oasst_api_client.ts @@ -221,7 +221,7 @@ export class OasstApiClient { // pagination direction but they both take the same cursor value. // Depending on direction, pick the right query param. if (cursor !== "") { - params.append(direction === "forward" ? "gt" : "lt", cursor); + params.append(direction === "forward" ? "after" : "before", cursor); } const BASE_URL = `/api/v1/users/cursor`; const url = `${BASE_URL}/?${params.toString()}`;