new error message?
Browse files
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:
|
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
|