Skip to content

Commit

Permalink
Better function name
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 26, 2024
1 parent 4f74898 commit 029d8e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __iter__(self) -> Iterator[bytes]:
yield chunk


def _no_encoding(request: httpx.Request):
def _no_accept_encoding(request: httpx.Request):
request.headers.pop("accept-encoding", None)


Expand Down Expand Up @@ -91,5 +91,5 @@ def _log_response(response: httpx.Response):

def logging_client() -> httpx.Client:
return httpx.Client(
event_hooks={"request": [_no_encoding], "response": [_log_response]}
event_hooks={"request": [_no_accept_encoding], "response": [_log_response]}
)

0 comments on commit 029d8e9

Please sign in to comment.