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

Add feature to reset histories after timeout #28

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

uezo
Copy link
Owner

@uezo uezo commented Apr 13, 2024

Default is 60.0 sec. You can customize by instancing ChatGPTProcessor with history_timeout argument or by changing history_timeout of it.

gpt = ChatGPTProcessor("YOUR_API_KEY", history_timeout=5.0)
gpt.history_timeout = 10.0

Default is 60.0 sec. You can customize by instancing ChatGPTProcessor with `history_timeout` argument or by changing `history_timeout` of it.

```python
gpt = ChatGPTProcessor("YOUR_API_KEY", history_timeout=5.0)
gpt.history_timeout = 10.0
```
@uezo uezo merged commit b94388c into main Apr 13, 2024
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.

None yet

1 participant