Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-79848

Error when running AI command to generate text in editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Low Low
    • Page - Editor - AI
    • None

      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.

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

                Created:
                Updated:
                Resolved: