Skip to content

Commit

Permalink
README: chat() default timeout=30
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Aug 2, 2024
1 parent d81a483 commit df4c354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ Exceptions:
## 1. chat() - AI chat

```python
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:
keywords (str): The initial message or question to send to the AI.
model (str): The model to use: "gpt-4o-mini", "claude-3-haiku", "llama-3-70b", "mixtral-8x7b".
Defaults to "gpt-4o-mini".
timeout (int): Timeout value for the HTTP client. Defaults to 20.
timeout (int): Timeout value for the HTTP client. Defaults to 30.
Returns:
str: The response from the AI.
Expand Down

0 comments on commit df4c354

Please sign in to comment.