Skip to content

Commit

Permalink
Add more verbose error messages in embed chat (#2306)
Browse files Browse the repository at this point in the history
* publish embed updates

* server sided error messages

* publish embed chat widget

* sync submodule

* unset change

* update embed to merged changes for error

---------

Co-authored-by: timothycarambat <[email protected]>
  • Loading branch information
shatfield4 and timothycarambat authored Sep 19, 2024
1 parent b25298c commit b7c7c0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/public/embed/anythingllm-chat-widget.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion server/utils/middleware/embedMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ async function canRespond(request, response, next) {
textResponse: null,
sources: [],
close: true,
error:
error: "Rate limit exceeded",
errorMsg:
"The quota for this chat has been reached. Try again later or contact the site owner.",
});
return;
Expand Down

0 comments on commit b7c7c0d

Please sign in to comment.