FIX: Fix HTTPError cannot be found in serperai

This commit is contained in:
ArchiusVuong-sudo
2025-01-18 21:58:50 +07:00
parent 71f3ed9ef9
commit a606f48b70

View File

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