diff --git a/ollama/_client.py b/ollama/_client.py index 4a928ed..18c5183 100644 --- a/ollama/_client.py +++ b/ollama/_client.py @@ -304,7 +304,7 @@ def copy(self, source: str, destination: str) -> Mapping[str, Any]: return {'status': 'success' if response.status_code == 200 else 'error'} def show(self, model: str) -> Mapping[str, Any]: - return self._request('GET', '/api/show', json={'name': model}).json() + return self._request('POST', '/api/show', json={'name': model}).json() class AsyncClient(BaseClient): @@ -580,7 +580,7 @@ async def copy(self, source: str, destination: str) -> Mapping[str, Any]: return {'status': 'success' if response.status_code == 200 else 'error'} async def show(self, model: str) -> Mapping[str, Any]: - response = await self._request('GET', '/api/show', json={'name': model}) + response = await self._request('POST', '/api/show', json={'name': model}) return response.json()