Skip to content

Commit 53b10f7

Browse files
authored
Merge pull request #9 from jmorganca/destination
s/target/destination/
2 parents fc60bd7 + 582839f commit 53b10f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ollama/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)