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

[BUG] Cat crashes when something goes wrong during bootstrap (LLM+embedder) #869

Open
MatteoSid opened this issue Jul 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MatteoSid
Copy link

Describe the bug
I'm trying to run the docker but it fails because i reched the OpenAI API limit for my plan.

openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

ERROR:    Application startup failed. Exiting.

To Reproduce
Steps to reproduce the behavior (as exampple`):

  1. Reach the OpenAI limit for your plan
  2. Use the docker compose down command
  3. Use the docker compose up command
  4. See error

Expected behavior
I expect to see a warning that says that i reached the limit but non an error in the startup of the docker.

@MatteoSid MatteoSid added the bug Something isn't working label Jul 9, 2024
@pieroit pieroit closed this as completed Jul 9, 2024
@pieroit pieroit reopened this Jul 9, 2024
@pieroit
Copy link
Member

pieroit commented Jul 9, 2024

Sorry I closed because I did not understand the question

Sounds right to give a warning and not a crash

@MatteoSid
Copy link
Author

Sorry I closed because I did not understand the question

Sounds right to give a warning and not a crash

Ah ok perfect, thanks.

@zAlweNy26
Copy link
Member

Sorry I closed because I did not understand the question
Sounds right to give a warning and not a crash

Well, I pay for OpenAI's APIs, but I've run out of available tokens. I set up the APIs within the graphical interface after starting Docker, but how can I change the APIs if Docker doesn't start? Isn't it possible that instead of crashing, Docker could notify me in the interface that I've run out of tokens? Or do I have to wait until tomorrow to start Docker?

Until we have a fix, I suggest you to delete the metadata.json so you can reset the llm and embedder settings and start again the container.

@pieroit pieroit changed the title [BUG] Docker doesn't start when OpenAI API limit is reached [BUG] Cat crashes when something goes wrong during bootstrap (LLM+embedder) Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants