Skip to content

Commit

Permalink
Added timeout parameter for async client
Browse files Browse the repository at this point in the history
  • Loading branch information
Seray Arslan committed Apr 5, 2024
1 parent 526e332 commit cefb2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/community/langchain_community/llms/openllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ async def _acall(
self._identifying_params["model_name"], **copied
)
if self._client:
async_client = openllm.client.AsyncHTTPClient(self.server_url)
async_client = openllm.client.AsyncHTTPClient(self.server_url, self.timeout)
res = (
(await async_client.generate(prompt, **config.model_dump(flatten=True)))
.outputs[0]
Expand Down

0 comments on commit cefb2c3

Please sign in to comment.