danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.87k stars 2.96k forks source link

[Bug]: show error in UI instead of silence #4152

Closed dmotxilla closed 1 week ago

dmotxilla commented 1 week ago

What happened?

I developed a tool that returns too much information, then LibreChat tried to answer the prompt with the provided information from my tool, and there was a openai rate_limit_exceeded. However, the UI didn't show anything, just became silent, so the user does not understand what's going on.

Steps to Reproduce

create a tool that returns too many information, and ask a prompt that uses the tool.

What browsers are you seeing the problem on?

No response

Relevant log output

here it is a log of the error in the console:

`{"assistant_id":"asst_ofZyP7CTCWOhHRfMmYbQ86BB","cancelled_at":null,"completed_at":null,"created_at":1726792185,"expires_at":null,"failed_at":1726792194,"id":"run_EXncRjfHljb3CYTpBNID3SAW","incomplete_details":null,"instructions":"You are a virtual assistant for our company","last_error":{"code":"rate_limit_exceeded","message":"Request too large for gpt-4o in organization org-8cbmmCXeZMZeEHk2Bls8zcG0 on tokens per min (TPM): Limit 30000, Requested 43052. The input or output tokens must be reduced in order to run successfully.
`

Screenshots

image

Code of Conduct