Skip to content

feat: Make webpage summarization timeout configurable #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SyedaAnshrahGillani
Copy link

This commit introduces a configurable timeout for the webpage summarization process. Previously, the summarize_webpage function in utils.py had a hardcoded 60-second timeout. This change allows users to specify a custom timeout via the summarization_timeout field in the Configuration class, providing more flexibility for varying content lengths and network conditions.

  • Added summarization_timeout field to Configuration in configuration.py.
  • Modified summarize_webpage in utils.py to accept and use the new timeout.
  • Updated tavily_search to pass the configurable timeout to summarize_webpage.

This commit introduces a configurable timeout for the webpage summarization process.
Previously, the `summarize_webpage` function in `utils.py` had a hardcoded 60-second timeout.
This change allows users to specify a custom timeout via the `summarization_timeout`
field in the `Configuration` class, providing more flexibility for varying content lengths
and network conditions.

- Added `summarization_timeout` field to `Configuration` in `configuration.py`.
- Modified `summarize_webpage` in `utils.py` to accept and use the new timeout.
- Updated `tavily_search` to pass the configurable timeout to `summarize_webpage`.
@rlancemartin rlancemartin force-pushed the main branch 2 times, most recently from 214871e to c84ad97 Compare August 8, 2025 05:28
@rlancemartin
Copy link
Collaborator

@SyedaAnshrahGillani thank you! please resolve conflicts and see recent updates. there is a 60s timeout now.

@SyedaAnshrahGillani
Copy link
Author

@rlancemartin Thanks for the heads-up! I've now merged the latest changes from the main
branch and resolved the conflicts. The timeout is now configurable as
intended by this PR, and it also incorporates the recent updates from the
main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants