Skip to content
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

Expose timeout to search function #11

Open
captain828 opened this issue Feb 8, 2024 · 1 comment
Open

Expose timeout to search function #11

captain828 opened this issue Feb 8, 2024 · 1 comment

Comments

@captain828
Copy link

Right now, a fixed timeout is used in the internal _search function of 100 seconds.

tavily.py:37 - response = requests.post(self.base_url, data=json.dumps(data), headers=self.headers, timeout=100)

I want to suggest the following improvements:

  • expose the timeout as a function arg, much like how the OpenAI SDK does it
  • set a more reasonable default timeout, like 30 seconds

Let me know what you think.

@tgonet
Copy link

tgonet commented Aug 25, 2024

is there such function yet?

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

No branches or pull requests

2 participants