Skip to content

Commit

Permalink
feat(agents-api): Increase api_call tools' timeouts to 60s (#656)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!IMPORTANT]
> Increase timeout to 60 seconds for HTTP requests in
`execute_api_call()` in `excecute_api_call.py`.
> 
>   - **Behavior**:
> - Increase timeout to 60 seconds in `execute_api_call()` in
`excecute_api_call.py` for HTTP requests using `httpx.AsyncClient`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup>
for 7ff06bd. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
HamadaSalhab authored Oct 15, 2024
1 parent 0855438 commit 2689c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/activities/excecute_api_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def execute_api_call(
request_args: RequestArgs,
) -> Any:
try:
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=60.0) as client:
arg_url = request_args.pop("url", None)
arg_headers = request_args.pop("headers", None)

Expand Down

0 comments on commit 2689c0a

Please sign in to comment.