Skip to content

Commit

Permalink
Update wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchard committed Jan 15, 2025
1 parent 209d1e3 commit 99af12a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[project]
name = "hume"

[tool.poetry]
name = "hume"
version = "0.7.6"
Expand Down
12 changes: 6 additions & 6 deletions src/hume/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def __init__(
super().__init__(api_key=api_key, base_url=base_url, timeout=timeout)
self.httpx_client = HttpClient(
httpx_client=httpx_client,
base_headers=self.get_headers(),
base_timeout=self.get_timeout(),
base_url=self.get_base_url(),
base_headers=lambda: self.get_headers(),
base_timeout=lambda: self.get_timeout(),
base_url=lambda: self.get_base_url(),
)


Expand All @@ -60,7 +60,7 @@ def __init__(
super().__init__(api_key=api_key, base_url=base_url, timeout=timeout)
self.httpx_client = AsyncHttpClient(
httpx_client=httpx_client,
base_headers=self.get_headers(),
base_timeout=self.get_timeout(),
base_url=self.get_base_url(),
base_headers=lambda: self.get_headers(),
base_timeout=lambda: self.get_timeout(),
base_url=lambda: self.get_base_url(),
)

0 comments on commit 99af12a

Please sign in to comment.