I am trying gpt-crawler in server mode, but after the first response, the same responses are always returned.
Is there a problem with my configuration or request?
$ cat tmp/crawl_example.json
{
"url": "https://example.com/",
"match": "https://example.com/**",
"outputFileName": "output_example.json",
"maxPagesToCrawl": 1,
"maxTokens": 2000
}
$ curl -XPOST http://localhost:3000/crawl -H "Content-Type: application/json" -d@tmp/crawl_example.json
[
{
"title": "Example Domain",
"url": "https://example.com/",
"html": "Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.\n\nMore information..."
}
]%
# First request is LGTM
$ cat tmp/crawl_wikipedia.json
{
"url": "https://wikipedia.org/",
"match": "https://wikipedia.org/**",
"outputFileName": "output_wikipedia.json",
"maxPagesToCrawl": 1,
"maxTokens": 2000
}
$ curl -XPOST http://localhost:3000/crawl -H "Content-Type: application/json" -d@tmp/crawl_wikipedia.json
[
{
"title": "Example Domain",
"url": "https://example.com/",
"html": "Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.\n\nMore information..."
}
]%
# Second request is same as first one.
I am trying
gpt-crawler
in server mode, but after the first response, the same responses are always returned. Is there a problem with my configuration or request?config and server command
request