mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-21 04:48:00 -05:00
* fix(rce): add isolate to list of trusted deps * updated error enchancer in RCE * fixed * fix build * fix failing test * fix build * fix build * remove extraneous comment
11 lines
329 B
TypeScript
11 lines
329 B
TypeScript
import type { InferPageType } from 'fumadocs-core/source'
|
|
import type { PageData, source } from '@/lib/source'
|
|
|
|
export async function getLLMText(page: InferPageType<typeof source>) {
|
|
const data = page.data as PageData
|
|
const processed = await data.getText('processed')
|
|
return `# ${data.title} (${page.url})
|
|
|
|
${processed}`
|
|
}
|