Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ The config file lives in the working directory by default; override with `-confi
"max_body_bytes": 5242880,
"max_depth": 3,
"respect_robots": true,
"block_private_networks": true,
"include_domains": ["docs.example.com"],
"max_urls_per_host": 1000,
"chunk_size": 320,
Expand Down
2 changes: 1 addition & 1 deletion cmd/cosift/assets/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
},
"responses": {
"TooManyRequests": {
"description": "Rate limit exceeded (per-IP token bucket; whitelist via COSIFT_RATELIMIT_WHITELIST)",
"description": "Rate limit exceeded (per-IP token bucket keyed on the resolved client IP). LLM-backed routes (/answer, /research, /query, /find, and /search or /find_similar with rerank/expand) also pass a tighter always-on tier: COSIFT_RATELIMIT_LLM_RPM / _BURST / _WHITELIST. Global tier: COSIFT_RATELIMIT_RPM / _BURST / _WHITELIST.",
"headers": {"Retry-After": {"schema": {"type": "integer"}}},
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Problem"}}}
}
Expand Down
4 changes: 4 additions & 0 deletions cmd/cosift/bench_crawl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"encoding/json"
"strings"
"testing"

"github.com/pilot-protocol/cosift/internal/netguard"
)

// TestBenchCrawlSmall verifies the crawler bench mode runs to
Expand All @@ -19,6 +21,8 @@ func TestBenchCrawlSmall(t *testing.T) {
if testing.Short() {
t.Skip("skipping bench in -short")
}
// The bench must work for a user who has not set the escape hatch.
t.Setenv(netguard.AllowPrivateEnv, "")
r, err := benchCrawl(context.Background(), 10, 0)
if err != nil {
t.Fatalf("benchCrawl: %v", err)
Expand Down
Loading
Loading