@@ -164,7 +164,7 @@ def __init__(
164164 @overload
165165 def vocr (self , params : VOCRParams ) -> OCRResponse : ...
166166 @overload
167- def vocr (self , file : bytes , options : VOCRParams = None ) -> VOCRParams : ...
167+ def vocr (self , blob : bytes , options : VOCRParams = None ) -> OCRResponse : ...
168168
169169 def vocr (
170170 self ,
@@ -203,7 +203,7 @@ def object_detection(
203203 ) -> ObjectDetectionResponse : ...
204204 @overload
205205 def object_detection (
206- self , file : bytes , options : ObjectDetectionParams = None
206+ self , blob : bytes , options : ObjectDetectionParams = None
207207 ) -> ObjectDetectionResponse : ...
208208
209209 def object_detection (
@@ -255,15 +255,15 @@ def __init__(
255255 @overload
256256 async def vocr (self , params : VOCRParams ) -> OCRResponse : ...
257257 @overload
258- async def vocr (self , file : bytes , options : VOCRParams = None ) -> VOCRParams : ...
258+ async def vocr (self , blob : bytes , options : VOCRParams = None ) -> OCRResponse : ...
259259
260260 async def vocr (
261261 self ,
262262 blob : Union [VOCRParams , bytes ],
263263 options : VOCRParams = None ,
264264 ) -> OCRResponse :
265265 if isinstance (blob , dict ):
266- resp = AsyncRequest (
266+ resp = await AsyncRequest (
267267 config = self .config ,
268268 path = "/vocr" ,
269269 params = cast (Dict [Any , Any ], blob ),
@@ -276,7 +276,7 @@ async def vocr(
276276 content_type = options .get ("content_type" , "application/octet-stream" )
277277 headers = {"Content-Type" : content_type }
278278
279- resp = Request (
279+ resp = await AsyncRequest (
280280 config = self .config ,
281281 path = path ,
282282 params = options ,
@@ -292,7 +292,7 @@ async def object_detection(
292292 ) -> ObjectDetectionResponse : ...
293293 @overload
294294 async def object_detection (
295- self , file : bytes , options : ObjectDetectionParams = None
295+ self , blob : bytes , options : ObjectDetectionParams = None
296296 ) -> ObjectDetectionResponse : ...
297297
298298 async def object_detection (
0 commit comments