diff --git a/ollama/_client.py b/ollama/_client.py index 4db5ab5..607f12c 100644 --- a/ollama/_client.py +++ b/ollama/_client.py @@ -47,7 +47,9 @@ class BaseClient: """ headers = kwargs.pop('headers', {}) - headers['user-agent'] = f'ollama-python/{__version__} ({platform.machine()} {platform.system().lower()}) Python/{platform.python_version()}' + headers['Content-Type'] = 'application/json' + headers['Accept'] = 'application/json' + headers['User-Agent'] = f'ollama-python/{__version__} ({platform.machine()} {platform.system().lower()}) Python/{platform.python_version()}' self._client = client( base_url=_parse_host(host or os.getenv('OLLAMA_HOST')),