@@ -1,7 +1,7 @@
{
"type": "module",
"name": "llm-scraper",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "Turn any webpage intro structured data using LLMs",
"main": "dist/index.js",
"scripts": {
@@ -33,6 +33,7 @@ export type ScraperLLMOptions = {
temperature?: number
maxTokens?: number
topP?: number
+ mode?: 'auto' | 'json' | 'tool' | 'grammar'
}
export type ScraperRunOptions = ScraperLLMOptions & ScraperLoadOptions
@@ -53,6 +53,7 @@ export async function generateAISDKCompletions<T extends z.ZodSchema<any>>(
temperature: options.temperature,
maxTokens: options.maxTokens,
topP: options.topP,
+ mode: options.mode,
})
return {