We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b929ab commit ec8bf88Copy full SHA for ec8bf88
ollama/_client.py
@@ -47,7 +47,9 @@ def __init__(
47
"""
48
49
headers = kwargs.pop('headers', {})
50
- headers['user-agent'] = f'ollama-python/{__version__} ({platform.machine()} {platform.system().lower()}) Python/{platform.python_version()}'
+ headers['Content-Type'] = 'application/json'
51
+ headers['Accept'] = 'application/json'
52
+ headers['User-Agent'] = f'ollama-python/{__version__} ({platform.machine()} {platform.system().lower()}) Python/{platform.python_version()}'
53
54
self._client = client(
55
base_url=_parse_host(host or os.getenv('OLLAMA_HOST')),
0 commit comments