mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Merge pull request #191 from KhanhSaypien/fix/HTTPError-import-issue
FIX: Fix HTTPError cannot be found in serperai
This commit is contained in:
@@ -3,7 +3,7 @@ from typing import Any, Type, Optional
|
||||
import re
|
||||
from pydantic import BaseModel, Field
|
||||
from .serpapi_base_tool import SerpApiBaseTool
|
||||
from serpapi import HTTPError
|
||||
from urllib.error import HTTPError
|
||||
|
||||
class SerpApiGoogleSearchToolSchema(BaseModel):
|
||||
"""Input for Google Search."""
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Any, Type, Optional
|
||||
import re
|
||||
from pydantic import BaseModel, Field
|
||||
from .serpapi_base_tool import SerpApiBaseTool
|
||||
from serpapi import HTTPError
|
||||
from urllib.error import HTTPError
|
||||
|
||||
class SerpApiGoogleShoppingToolSchema(BaseModel):
|
||||
"""Input for Google Shopping."""
|
||||
|
||||
Reference in New Issue
Block a user