Skip to content

Commit f3f1489

Browse files
committed
Update model
1 parent 417b913 commit f3f1489

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

servers/fai/src/fai/models/api/website_api.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,23 @@
99

1010
class IndexWebsiteRequest(BaseModel):
1111
base_url: str = Field(description="The base URL to start indexing from (e.g., 'https://docs.example.com')")
12-
domain_filter: str | None = Field(default=None, description="Domain to filter the index (e.g., 'docs.example.com')")
12+
domain_filter: str | None = Field(
13+
default=None, description="Domain to filter the index (e.g., 'docs.example.com')"
14+
)
1315
path_include_patterns: list[str] | None = Field(
1416
default=None, description="URL patterns to include (e.g., ['/docs/*', '/api/*']). If empty, includes all."
1517
)
16-
exclude_patterns: list[str] | None = Field(
18+
path_exclude_patterns: list[str] | None = Field(
1719
default=None, description="URL patterns to exclude (e.g., ['/blog/*', '*.pdf'])"
1820
)
19-
version: str | None = Field(default=None, description="Version to tag all crawled pages with")
20-
product: str | None = Field(default=None, description="Product to tag all crawled pages with")
21-
authed: bool | None = Field(default=None, description="Whether crawled pages should be auth-gated")
21+
version: str | None = Field(default=None, description="Version to tag all indexed pages with")
22+
product: str | None = Field(default=None, description="Product to tag all indexed pages with")
23+
authed: bool | None = Field(default=None, description="Whether indexed pages should be auth-gated")
2224

2325

2426
class IndexWebsiteResponse(BaseModel):
25-
job_id: str = Field(description="ID to track the crawling job status")
26-
base_url: str = Field(description="The base URL being crawled")
27+
job_id: str = Field(description="ID to track the indexing job status")
28+
base_url: str = Field(description="The base URL being indexed")
2729

2830

2931
class GetWebsiteStatusResponse(BaseModel):

servers/fai/src/fai/routes/website.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)
77

88
from fastapi import (
9+
BackgroundTasks,
910
Body,
1011
Depends,
1112
HTTPException,

0 commit comments

Comments
 (0)