Skip to content

Commit

Permalink
chat(): increase the default timeout from 20 to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Aug 2, 2024
1 parent 5c5efbc commit d81a483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion duckduckgo_search/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def version():
@click.option("-l", "--load", is_flag=True, default=False, help="load the last conversation from the json cache")
@click.option("-p", "--proxy", default=None, help="the proxy to send requests, example: socks5://127.0.0.1:9150")
@click.option("-ml", "--multiline", is_flag=True, default=False, help="multi-line input")
@click.option("-t", "--timeout", default=20, help="timeout value for the HTTP client")
@click.option("-t", "--timeout", default=30, help="timeout value for the HTTP client")
@click.option(
"-m",
"--model",
Expand Down
2 changes: 1 addition & 1 deletion duckduckgo_search/duckduckgo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _get_vqd(self, keywords: str) -> str:
resp_content = self._get_url("POST", "https://duckduckgo.com", data={"q": keywords})
return _extract_vqd(resp_content, keywords)

def chat(self, keywords: str, model: str = "gpt-4o-mini", timeout: int = 20) -> str:
def chat(self, keywords: str, model: str = "gpt-4o-mini", timeout: int = 30) -> str:
"""Initiates a chat session with DuckDuckGo AI.
Args:
Expand Down

0 comments on commit d81a483

Please sign in to comment.