So Airtable API expects a maxRecords value to be the total set of records you want across multiple API calls. If the maxRecords is greater than 100, then it will provide pagination hints accordingly.

This commit is contained in:
Darien Kindlund
2024-01-27 16:33:16 -05:00
parent 9b71f683ff
commit dc39d7e2be
@@ -251,7 +251,7 @@ class AirtableLoader extends BaseDocumentLoader {
private async loadLimit(): Promise<Document[]> {
let data: AirtableLoaderRequest = {
maxRecords: Math.min(this.limit, 100), // Airtable only returns up to 100 records per request
maxRecords: this.limit,
view: this.viewId
}