55from ._config import ClientConfig
66
77
8- class SearchAIResponse (TypedDict ):
8+ class SearchResponse (TypedDict ):
99 success : bool
1010 """
1111 Indicates whether the translation was successful.
@@ -35,7 +35,7 @@ class SearchSuggestionParams(TypedDict):
3535 The search value. The maximum query character length is 200.
3636 """
3737
38- class AISearchParams (TypedDict ):
38+ class SearchParams (TypedDict ):
3939 query : str
4040 """
4141 The search value. The maximum query character length is 200.
@@ -55,7 +55,7 @@ class AISearchParams(TypedDict):
5555
5656
5757class Search (ClientConfig ):
58- def ai_search (self ,params : AISearchParams ) -> SearchAIResponse :
58+ def search (self ,params : SearchParams ) -> SearchResponse :
5959 query = params ["query" ]
6060 ai_overview = params .get ("ai_overview" , "True" )
6161 safe_search = params .get ("safe_search" ,"moderate" )
@@ -67,7 +67,6 @@ def ai_search(self,params: AISearchParams) -> SearchAIResponse:
6767 path = path , params = cast (Dict [Any , Any ], params ), verb = "GET"
6868 ).perform_with_content ()
6969
70- print (resp )
7170 return resp
7271
7372
@@ -79,6 +78,4 @@ def suggestion(self, params: SearchSuggestionParams) -> SearchSuggestionResponse
7978 api_url = self .api_url ,
8079 path = path , params = cast (Dict [Any , Any ], params ), verb = "GET"
8180 ).perform_with_content ()
82-
83- print (resp )
8481 return resp
0 commit comments