diff --git a/libs/agno/agno/agent/agent.py b/libs/agno/agno/agent/agent.py index 2352b331e..e71692887 100644 --- a/libs/agno/agno/agent/agent.py +++ b/libs/agno/agno/agent/agent.py @@ -541,8 +541,7 @@ def _run( self.run_response.content = model_response_chunk.content self.run_response.created_at = model_response_chunk.created_at yield self.create_run_response( - content=model_response_chunk.content, - created_at=model_response_chunk.created_at + content=model_response_chunk.content, created_at=model_response_chunk.created_at ) # If the model response is a tool_call_started, add the tool call to the run_response elif model_response_chunk.event == ModelResponseEvent.tool_call_started.value: @@ -2744,7 +2743,7 @@ def reason(self, run_messages: RunMessages) -> Iterator[RunResponse]: reasoning_agent_messages=[ds_reasoning_message], ) # Use Groq for reasoning - if reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id: + elif reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id: from agno.reasoning.groq import get_groq_reasoning, get_groq_reasoning_agent groq_reasoning_agent = self.reasoning_agent or get_groq_reasoning_agent( @@ -2897,7 +2896,7 @@ async def areason(self, run_messages: RunMessages) -> Any: reasoning_agent_messages=[ds_reasoning_message], ) # Use Groq for reasoning - if reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id: + elif reasoning_model.__class__.__name__ == "Groq" and "deepseek" in reasoning_model.id: from agno.reasoning.groq import aget_groq_reasoning, get_groq_reasoning_agent groq_reasoning_agent = self.reasoning_agent or get_groq_reasoning_agent( diff --git a/libs/agno/agno/tools/firecrawl.py b/libs/agno/agno/tools/firecrawl.py index b0bdae52c..5e2b4ee84 100644 --- a/libs/agno/agno/tools/firecrawl.py +++ b/libs/agno/agno/tools/firecrawl.py @@ -19,6 +19,7 @@ def __init__( limit: int = 10, scrape: bool = True, crawl: bool = False, + api_url: Optional[str] = "https://api.firecrawl.dev", ): super().__init__(name="firecrawl_tools") @@ -28,7 +29,7 @@ def __init__( self.formats: Optional[List[str]] = formats self.limit: int = limit - self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key) + self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key, api_url=api_url) # Start with scrape by default. But if crawl is set, then set scrape to False. if crawl: