Skip to content

Commit

Permalink
Merge pull request #20 from atomiechen/dev
Browse files Browse the repository at this point in the history
fix(requestor): needs to import requests/httpx when using their exceptions
  • Loading branch information
atomiechen authored Apr 13, 2024
2 parents 9903282 + db48c98 commit 9a9aa6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "HandyLLM"
version = "0.6.2"
version = "0.6.3"
authors = [
{ name="Atomie CHEN", email="atomic_cwh@163.com" },
]
Expand Down
2 changes: 2 additions & 0 deletions src/handyllm/requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def call(self):
raise e

def _call_raw(self) -> requests.Response:
import requests
response = self._sync_client.request(
self.method,
self.url,
Expand Down Expand Up @@ -232,6 +233,7 @@ async def acall(self):
raise e

async def _acall_raw(self):
import httpx
request = self._async_client.build_request(
self.method,
self.url,
Expand Down

0 comments on commit 9a9aa6a

Please sign in to comment.