mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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
|
import re
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from .serpapi_base_tool import SerpApiBaseTool
|
from .serpapi_base_tool import SerpApiBaseTool
|
||||||
from serpapi import HTTPError
|
from urllib.error import HTTPError
|
||||||
|
|
||||||
class SerpApiGoogleSearchToolSchema(BaseModel):
|
class SerpApiGoogleSearchToolSchema(BaseModel):
|
||||||
"""Input for Google Search."""
|
"""Input for Google Search."""
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from typing import Any, Type, Optional
|
|||||||
import re
|
import re
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from .serpapi_base_tool import SerpApiBaseTool
|
from .serpapi_base_tool import SerpApiBaseTool
|
||||||
from serpapi import HTTPError
|
from urllib.error import HTTPError
|
||||||
|
|
||||||
class SerpApiGoogleShoppingToolSchema(BaseModel):
|
class SerpApiGoogleShoppingToolSchema(BaseModel):
|
||||||
"""Input for Google Shopping."""
|
"""Input for Google Shopping."""
|
||||||
|
|||||||
Reference in New Issue
Block a user