quivr/backend/api/quivr_api/models/crawler.py

12 lines
209 B
Python
Raw Normal View History

import os
from pydantic import BaseModel
class CrawlWebsite(BaseModel):
url: str
js: bool = False
depth: int = int(os.getenv("CRAWL_DEPTH", "1"))
max_pages: int = 100
max_time: int = 60