Skip to content

Commit

Permalink
[BUG] Add headers to async client requests
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkim committed Dec 3, 2024
1 parent c2cc1df commit 278a112
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chromadb/api/async_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ async def _make_request(
escaped_path = urllib.parse.quote(path, safe="/", encoding=None, errors=None)
url = self._api_url + escaped_path

response = await self._get_client().request(method, url, **cast(Any, kwargs))
response = await self._get_client().request(
method,
url,
headers=self._settings.chroma_server_headers,
**cast(Any, kwargs),
)
BaseHTTPClient._raise_chroma_error(response)
return orjson.loads(response.text)

Expand Down

0 comments on commit 278a112

Please sign in to comment.