enzostvs HF Staff commited on
Commit
1286f78
·
1 Parent(s): 13caa58

new error message?

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -237,7 +237,7 @@ app.post("/api/ask-ai", async (req, res) => {
237
  if (!res.headersSent) {
238
  res.status(500).send({
239
  ok: false,
240
- message: error.message,
241
  });
242
  } else {
243
  // Otherwise end the stream
 
237
  if (!res.headersSent) {
238
  res.status(500).send({
239
  ok: false,
240
+ message: `You probably reached the MAX_TOKENS limit, context is too long. You can start a new conversation by refreshing the page.`,
241
  });
242
  } else {
243
  // Otherwise end the stream