Hardcode Firecrawl API endpoint, drop FIRECRAWL_ENDPOINT config
Firecrawl has a single public API at https://api.firecrawl.dev/v2. The endpoint was configurable but never varied across environments, so hardcode it as a package-level const and remove the Endpoint field from FirecrawlConfig and all downstream wiring (bootstrap, Helm chart, probod, vetting, cookiebanner). Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -43,7 +43,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
func CheckGovernmentDBTool(endpoint, apiKey string) agent.Tool {
|
||||
func CheckGovernmentDBTool(apiKey string) agent.Tool {
|
||||
client := newHTTPClient()
|
||||
|
||||
return agent.FunctionTool(
|
||||
@@ -87,7 +87,7 @@ func CheckGovernmentDBTool(endpoint, apiKey string) agent.Tool {
|
||||
}
|
||||
|
||||
for _, s := range searches {
|
||||
entries, err := firecrawlSearch(ctx, client, endpoint, apiKey, s.query, 3)
|
||||
entries, err := firecrawlSearch(ctx, client, apiKey, s.query, 3)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user