Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
docs: correct the default agent model to spark-1-pro (#4371)
claude[bot]23fe5aa04d3c
diff --git a/README.md b/README.mdindex 764cd5503..ab1a292f2 100644--- a/README.md+++ b/README.md@@ -388,8 +388,8 @@ Choose between two models based on your needs:| Model | Cost | Best For ||-------|------|----------|-| `spark-1-mini` (default) | 60% cheaper | Most tasks |-| `spark-1-pro` | Standard | Complex research, critical data gathering |+| `spark-1-mini` | 60% cheaper | Most tasks |+| `spark-1-pro` (default) | Standard | Complex research, critical data gathering |```pythonresult = app.agent(prompt="Compare enterprise features across Firecrawl, Apify, and ScrapingBee",diff --git a/apps/elixir-sdk/lib/firecrawl.ex b/apps/elixir-sdk/lib/firecrawl.exindex a1ff52f9a..5a70a5ae5 100644--- a/apps/elixir-sdk/lib/firecrawl.ex+++ b/apps/elixir-sdk/lib/firecrawl.ex@@ -1348,7 +1348,7 @@ defmodule Firecrawl do@start_agent_schema NimbleOptions.new!([audit_metadata: [type: :keyword_list, keys: [username: [type: :string, required: true]], doc: "User attribution to include with SIEM logging events."],max_credits: [type: {:or, [:integer, :float]}, doc: "Maximum credits to spend on this agent task. Defaults to 2500 if not set. Values above 2,500 are always billed as paid requests."],- model: [type: {:or, [{:in, [:"spark-1-mini", :"spark-1-pro", :"spark-2"]}, :string]}, doc: "The model to use for the agent task. spark-2 (default) handles most tasks, spark-1-mini is 60% cheaper than spark-1-pro, spark-1-pro offers higher accuracy for complex tasks"],+ model: [type: {:or, [{:in, [:"spark-1-mini", :"spark-1-pro", :"spark-2"]}, :string]}, doc: "The model to use for the agent task. spark-1-pro (default) offers higher accuracy for complex tasks, spark-1-mini is 60% cheaper than spark-1-pro, spark-2 handles most tasks"],prompt: [type: :string, required: true, doc: "The prompt describing what data to extract"],schema: [type: :any, doc: "Optional JSON schema to structure the extracted data"],strict_constrain_to_urls: [type: :boolean, doc: "If true, agent will only visit URLs provided in the urls array"],diff --git a/apps/java-sdk/src/main/java/com/firecrawl/models/AgentOptions.java b/apps/java-sdk/src/main/java/com/firecrawl/models/AgentOptions.javaindex 2b1a16ce8..a738a57bf 100644--- a/apps/java-sdk/src/main/java/com/firecrawl/models/AgentOptions.java+++ b/apps/java-sdk/src/main/java/com/firecrawl/models/AgentOptions.java@@ -61,7 +61,7 @@ public class AgentOptions {public Builder maxCredits(Integer maxCredits) { this.maxCredits = maxCredits; return this; }/** Don't navigate outside provided URLs. */public Builder strictConstrainToURLs(Boolean strictConstrainToURLs) { this.strictConstrainToURLs = strictConstrainToURLs; return this; }- /** Agent model: "spark-2" (default), "spark-1-pro", or "spark-1-mini". */+ /** Agent model: "spark-1-pro" (default), "spark-1-mini", or "spark-2". */public Builder model(String model) { this.model = model; return this; }/** Webhook configuration. */public Builder webhook(WebhookConfig webhook) { this.webhook = webhook; return this; }diff --git a/apps/python-sdk/firecrawl/__tests__/unit/v2/methods/test_agent_request_preparation.py b/apps/python-sdk/firecrawl/__tests__/unit/v2/methods/test_agent_request_preparation.pyindex 32478a547..1dcdcc616 100644--- a/apps/python-sdk/firecrawl/__tests__/unit/v2/methods/test_agent_request_preparation.py+++ b/apps/python-sdk/firecrawl/__tests__/unit/v2/methods/test_agent_request_preparation.py@@ -352,7 +352,7 @@ class TestAgentResponseParsing:def test_status_payload_parses_known_models(self, model):"""A status payload naming any current model parses.- /v2/agent/:id always returns `model`, and it defaults to spark-2, so a+ /v2/agent/:id always returns `model`, and it defaults to spark-1-pro, so anarrow type here breaks every poll of a default-model job."""response = AgentResponse(diff --git a/apps/python-sdk/firecrawl/v2/client.py b/apps/python-sdk/firecrawl/v2/client.pyindex 6655520a7..5f65ca8a8 100644--- a/apps/python-sdk/firecrawl/v2/client.py+++ b/apps/python-sdk/firecrawl/v2/client.py@@ -1370,7 +1370,7 @@ class FirecrawlClient:schema: Target JSON schema for the output (dict or Pydantic BaseModel)integration: Integration tag/namemax_credits: Maximum credits to use (optional)- model: Model to use for the agent ("spark-2" (default), "spark-1-pro", or "spark-1-mini")+ model: Model to use for the agent ("spark-1-pro" (default), "spark-1-mini", or "spark-2")webhook: Webhook URL or configuration for notificationsthreat_protection: Enterprise per-request override of the team'sthreat protection policy@@ -1418,7 +1418,7 @@ class FirecrawlClient:poll_interval: Seconds between status checkstimeout: Maximum seconds to wait (None for no timeout)max_credits: Maximum credits to use (optional)- model: Model to use for the agent ("spark-2" (default), "spark-1-pro", or "spark-1-mini")+ model: Model to use for the agent ("spark-1-pro" (default), "spark-1-mini", or "spark-2")webhook: Webhook URL or configuration for notificationsthreat_protection: Enterprise per-request override of the team'sthreat protection policydiff --git a/apps/rust-sdk/src/agent.rs b/apps/rust-sdk/src/agent.rsindex 9292a7f1b..5830225ca 100644--- a/apps/rust-sdk/src/agent.rs+++ b/apps/rust-sdk/src/agent.rs@@ -32,7 +32,7 @@ pub struct AgentOptions {/// Strictly constrain the agent to the provided URLs.pub strict_constrain_to_urls: Option<bool>,- /// Agent model to use. Defaults to `spark-2` server-side when unset.+ /// Agent model to use. Defaults to `spark-1-pro` server-side when unset.pub model: Option<AgentModel>,/// Webhook configuration for agent notifications.