Skip to content

Commit 6d015ab

Browse files
updating prompt_too_long error msg
1 parent 25abe51 commit 6d015ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compass-generative-ai/src/components/generative-ai-input.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('GenerativeAIInput Component', function () {
112112
],
113113
[
114114
'PROMPT_TOO_LONG',
115-
'Sorry, your prompt is too long and has exceeded the token limit. Please try using this feature with a shorter prompt.',
115+
'Sorry, your request is too large. Please use a smaller prompt or try using this feature on a collection with smaller documents.',
116116
],
117117
[
118118
'TOO_MANY_REQUESTS',

packages/compass-generative-ai/src/components/generative-ai-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ const AIError = ({
569569
// able to fix the issue on their own it cases where the schema is too big.
570570
return (
571571
<>
572-
Sorry, your collections have too many fields to process. Please try
572+
Sorry, your request is too large. Please use a smaller prompt or try
573573
using this feature on a collection with smaller documents.
574574
</>
575575
);

0 commit comments

Comments
 (0)