This commit is contained in:
Nicolas
2024-09-18 15:58:54 -04:00
2 changed files with 3 additions and 2 deletions
+1 -1
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 If youd like to test the crawl endpoint, you can run this
```curl ```curl
curl -X POST http://localhost:3002/v0/crawl \ curl -X POST http://localhost:3002/v1/crawl \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"url": "https://mendable.ai" "url": "https://mendable.ai"
+2 -1
View File
@@ -70,7 +70,8 @@ export const scrapeOptions = z.object({
]) ])
.array() .array()
.optional() .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(), headers: z.record(z.string(), z.string()).optional(),
includeTags: z.string().array().optional(), includeTags: z.string().array().optional(),
excludeTags: z.string().array().optional(), excludeTags: z.string().array().optional(),