The body field has no text. Please supply content to the body field.

Created on 3 March 2023, over 1 year ago
Updated 4 December 2023, 7 months ago

"Body" field is hardcoded and there isn't any validation that the field already exists. We are using paragraphs, and the text is structured by paragraphs. Therefore, we deleted "body" from our project. I see that the module supports paragraphs, but it still requires a "body"-based node structure.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic siva01

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @siva01
  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    Yes, it will be expanded upon so you can select which longtext field to summarize. In its current form, its based against node fields, so I am not sure how to make it paragraphs aware yet.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    Circling back on this. I have noticed just a couple of things.

    - It would be nice if you could 'replace' the response into a given field.
    - It would be nice if you could use the same tools from the Node creation form (may require JS?)
    - Definitely need to be able to select from a list of all text based fields on the node object instead of assume body only.

    The third point I can go after right away.

  • πŸ‡ΊπŸ‡ΈUnited States DrupalRanger

    Is the issue that the body field must exist for the search to take place. For instance, a node that has several long text fields but none of them are the body text field. If the body text field is not present the search cannot happen. However, if the body text field is present but left blank the search proceeds and looks at the remaining text fields?

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    The issue is that the user does not have the ability to select which field to look at right now, and body is hardcoded.

    I believe there is a patch here: πŸ› openai_content functionalities appear only on edition and not on creation Fixed

  • Status changed to Fixed about 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed 7 months ago
  • πŸ‡¬πŸ‡·Greece _dcre_

    @kevinquillen this is not fixed. unless i understand something wrong, identification of text fields within paragraphs is not supported yet. So to return to the initial issue description, if body is removed from the content type and the basic content text field is within a paragraph, its not identified by the openai module as candidate for summarise etc

Production build 0.69.0 2024