Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update README.md

Nicolas89f00b222edd
diff --git a/README.md b/README.md
index 6fd1b8245..863063f23 100644
--- a/README.md
+++ b/README.md
@@ -509,7 +509,7 @@ class ArticleSchema(BaseModel):
class TopArticlesSchema(BaseModel):
top: List[ArticleSchema] = Field(..., description="Top 5 stories")
-json_config = ExtractConfig(schema=TopArticlesSchema.model_json_schema())
+json_config = JsonConfig(schema=TopArticlesSchema.model_json_schema())
llm_extraction_result = app.scrape_url('https://news.ycombinator.com', formats=["json"], json=json_config)