Merge pull request #191 from KhanhSaypien/fix/HTTPError-import-issue

FIX: Fix HTTPError cannot be found in serperai
This commit is contained in:
João Moura
2025-01-19 00:10:23 -03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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."""

View File

@@ -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."""