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

/clear-context command #142

Closed
messiah1030k opened this issue May 4, 2023 · 3 comments
Closed

/clear-context command #142

messiah1030k opened this issue May 4, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@messiah1030k
Copy link

Problem

The error below occurs in the chat window.
If you use the /clear command, the chat window is cleared, but the context still seems to be maintained.
We need a function that can initialize the context.

openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens, however you requested 6779 tokens (6523 in your prompt; 256 for the completion). Please reduce your prompt; or completion length.

Proposed Solution

add /clear-context command in chat pannel

Additional context

@messiah1030k messiah1030k added the enhancement New feature or request label May 4, 2023
@welcome
Copy link

welcome bot commented May 4, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@dlqqq
Copy link
Member

dlqqq commented May 4, 2023

@messiah1030k Thank you for reporting this issue! 🤗 Yes, this is certainly a bug of /clear, and not an intentional feature. I noticed it as well while developing #141 yesterday. Don't worry, I'm already working on fixing it.

@dlqqq
Copy link
Member

dlqqq commented May 17, 2023

Fixed by #144.

@dlqqq dlqqq closed this as completed May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants