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

OpenAI Error #46

Open
krrishdholakia opened this issue Jun 21, 2023 · 1 comment
Open

OpenAI Error #46

krrishdholakia opened this issue Jun 21, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@krrishdholakia
Copy link

Hi @seratch

Facing a context window limitation error.

Would recommend wrapping the openai base with something like reliableGPT to handle retries, model switching, etc.

from reliablegpt import reliableGPT
openai.ChatCompletion.create = reliableGPT(openai.ChatCompletion.create, user_email=...)

Source: https://github.com/BerriAI/reliableGPT

@seratch seratch added bug Something isn't working help wanted Extra attention is needed labels Jun 21, 2023
@seratch
Copy link
Owner

seratch commented Jun 21, 2023

Hi @krrishdholakia, thanks for writing in! I myself never experienced the error. Can you share more details on it, such as the model you're using and stacktrace? This app has its own logic to decide the tokens to send: https://github.com/seratch/ChatGPT-in-Slack/blob/main/app/openai_ops.py

I am not sure if we can easily switch to reliableGPT without changing the app's behavior, but if we can do so, I am happy to rely on well-maintained library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants