Starlight automatically renders the frontmatter title as H1, so having a duplicate # Title in the body creates redundancy. Removed from 29 content files across all sections.
31 lines
619 B
Plaintext
31 lines
619 B
Plaintext
---
|
|
title: Handle Pagination
|
|
description: Work with documents that exceed token limits.
|
|
---
|
|
|
|
import { Aside } from '@astrojs/starlight/components';
|
|
|
|
> *"Yeah, I'm gonna need you to go ahead and come in on Saturday for page 2..."*
|
|
|
|
Documents over 25,000 tokens are automatically paginated. Use cursors to fetch subsequent pages.
|
|
|
|
```json
|
|
{
|
|
"text": "Chapter 1...",
|
|
"pagination": {
|
|
"current_page": 1,
|
|
"total_pages": 5,
|
|
"cursor_id": "abc123"
|
|
}
|
|
}
|
|
```
|
|
|
|
Continue with:
|
|
```
|
|
Continue extraction with cursor abc123
|
|
```
|
|
|
|
<Aside type="caution" title="Coming Soon">
|
|
Detailed pagination guide in progress.
|
|
</Aside>
|