Error when running AI command to generate text in editor

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Low
    • Component/s: Page - Editor - AI
    • None
    • 2
    • Severity 3 - Minor

      Issue Summary

      On a page that has already a very long content, when asking AI to generate a text, for example "Create a short story", the command fails.

      Steps to Reproduce

      1. Create a page with a very long text (around 1,821 words / 9,894 characters)
      2. In edit mode on the page, open the AI command screen /ai
      3. Ask the AI the following request "Create a short story" (Or choose any option and see the same behavior with long text )

      Expected Results

      The request is generated.

      Actual Results

      The request fails with the following error in the UI:

      We couldn't get a response. Your prompt or response was over the limit for this request. Close the dialog and try again. 

      Response in the browser's Network tab:

      "generatedContent": null,
      "meta": null,
      "error":
             "message": "The input is too large to be processed.",
             "statuscode: 400
             "key": "INPUT_EXCEEDS_TOKEN_LIMIT"

      Example in screenshot:

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available.

            Assignee:
            Unassigned
            Reporter:
            Roberto M. (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: