Multiple values returned by augmentor default field

Created on 2 May 2023, over 1 year ago
Updated 10 May 2023, over 1 year ago

I am trying to create a "Summarize" button so clients can click that button to get a summary of thier post to populate a field.

I have created a augmentor field using OpenAI GPT3 Augmentor configured to generate only one completion for the propt and when we click the "Summarize" button we got multiple summary returned.

Looking at the augmentor_library.js file I see that it doesn't use "once" like it is explained in javascript api overview page on drupal.org ( https://www.drupal.org/docs/drupal-apis/javascript-api/javascript-api-overview )

When I edit the code to use once, i t works properly and return one summary. Is this absence of "once" intentional or not, is it a bug?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium davidiio

Live updates comments and jobs are added and updated live.
  • jQuery

    Affects the version, handling, or usage of the jQuery javascript library.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024