@@ -299,8 +299,8 @@ def delete(self, model: str) -> Mapping[str, Any]:
299299 def list (self ) -> Mapping [str , Any ]:
300300 return self ._request ('GET' , '/api/tags' ).json ()
301301
302- def copy (self , source : str , target : str ) -> Mapping [str , Any ]:
303- response = self ._request ('POST' , '/api/copy' , json = {'source' : source , 'destination' : target })
302+ def copy (self , source : str , destination : str ) -> Mapping [str , Any ]:
303+ response = self ._request ('POST' , '/api/copy' , json = {'source' : source , 'destination' : destination })
304304 return {'status' : 'success' if response .status_code == 200 else 'error' }
305305
306306 def show (self , model : str ) -> Mapping [str , Any ]:
@@ -575,8 +575,8 @@ async def list(self) -> Mapping[str, Any]:
575575 response = await self ._request ('GET' , '/api/tags' )
576576 return response .json ()
577577
578- async def copy (self , source : str , target : str ) -> Mapping [str , Any ]:
579- response = await self ._request ('POST' , '/api/copy' , json = {'source' : source , 'destination' : target })
578+ async def copy (self , source : str , destination : str ) -> Mapping [str , Any ]:
579+ response = await self ._request ('POST' , '/api/copy' , json = {'source' : source , 'destination' : destination })
580580 return {'status' : 'success' if response .status_code == 200 else 'error' }
581581
582582 async def show (self , model : str ) -> Mapping [str , Any ]:
0 commit comments