This commit is contained in:
Nicolas 2024-09-18 15:58:54 -04:00
commit 03eb47d426
2 changed files with 3 additions and 2 deletions

View File

@ -103,7 +103,7 @@ This should return the response Hello, world!
If youd like to test the crawl endpoint, you can run this
```curl
curl -X POST http://localhost:3002/v0/crawl \
curl -X POST http://localhost:3002/v1/crawl \
-H 'Content-Type: application/json' \
-d '{
"url": "https://mendable.ai"

View File

@ -70,7 +70,8 @@ export const scrapeOptions = z.object({
])
.array()
.optional()
.default(["markdown"]),
.default(["markdown"])
.refine(x => !(x.includes("screenshot") && x.includes("screenshot@fullPage")), "You may only specify either screenshot or screenshot@fullPage"),
headers: z.record(z.string(), z.string()).optional(),
includeTags: z.string().array().optional(),
excludeTags: z.string().array().optional(),