Basic Error Adding Field Augmentor

Created on 31 March 2023, over 1 year ago
Updated 22 May 2023, over 1 year ago

I got an error when I tried to create a field augmentor field:

There was a problem creating field Field Augmentor Test: The "field_token_value_text" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FormatterPluginManager are: ace_formatter, advanced_text, field_augmentor_formatter, blazy, blazy_oembed...

How to reproduce:

  • Fresh Drupal 9 install (9.5.7) with composer. Installed latest version of module
  • Added my openai key via /admin/config/system/keys as config key
  • Used article content type and tried to add a new field
🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇺🇸United States markwk

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

Comments & Activities

  • Issue created by @markwk
  • 🇷🇺Russia allexim

    Same thing did happen to me:

    Error message
    There was a problem creating field augmented field: The "field_token_value_text" plugin does not exist.

    1. Bare integration to CKEditor 4

    2. the DISPARATE result - an empty set of augmentors.
      After enabling an additional module Demo Augmentor and creating a key with: {key type - authentication, key provider - configuration, key value - anything},
      upon highlighting of a fragment of a text it just duplicates an original one to the string below

      Beforehand an augmentor type must be added: /admin/config/augmentors

    3. Add a new Augmentor field
    4. (/admin/structure/types/manage/.../fields/add-field) in this case, only an error emerges.
      Neither a tab nor something else is visible in the node create template.

    5. with OpenAI GPT3 Augmentor enabled:
    • when trying to edit newly created OpenAI GPT3 Completion
    Error: Class "Orhanerday\OpenAi\OpenAi" not found in Drupal\augmentor_openai_gpt3\OpenAiGPT3Base->getClient() (line 36 of modules/contrib/augmentor_openai_gpt3/src/OpenAiGPT3Base.php).
    
    Drupal\augmentor_openai_gpt3\OpenAiGPT3Base->getClient() (Line: 285)
    Drupal\augmentor_openai_gpt3\Plugin\Augmentor\OpenAiGPT3Completions->engines() (Line: 61)
    Drupal\augmentor_openai_gpt3\Plugin\Augmentor\OpenAiGPT3Completions->buildConfigurationForm() (Line: 112)
    Drupal\augmentor\Form\AugmentorFormBase->buildForm() (Line: 18)
    Drupal\augmentor\Form\AugmentorEditForm->buildForm()
    call_user_func_array() (Line: 534)
  • when trying to augment a text fragment
  • an error is thrown:

    Error during the completion execution, please check the logs for more information.

    P.S.: I have written this to support the reporter.

  • Assigned to naveenvalecha
  • 🇷🇺Russia allexim

    An error still persists for the field entities, even though i tried to switch a Display widget:

    • Augmentor Default Widget
    • Augmentor
    • Augmentor File Widget

    - was tested for D9 with php 8.1

    its behaviour:
    input:

    ckeditor4 text editor

    output:
    - Augmentor Default Widget

    undefined

    I'm sorry, I cannot answer your question without knowing what it is. Please provide more information.

    I'm sorry, I cannot answer your question without knowing what it is. Please provide more information.

    - Augmentor
    no action at all

  • 🇨🇳China fishfree

    The same problem here, Drupal 9.5.8 & 10

  • 🇷🇺Russia allexim

    @fishfree, enable CKEditor 4 altogether with ChatGPT Augmentor and/or OpenAI GPT3 Augmentor.

    Then create your augmentors (/admin/config/augmentors):

    ChatGPT Augmentor, which uses gpt-3.5-turbo model, is more stable.

    In case of ADA, my configuration is:

    • Temp: 0.2
    • Max tokens: 186
    • Frequency Penalty: 0.6
    • Presence Penalty: 0.3

    Would be nice to hear your configuration set, and have you tried to drill your model (ada, curie, babbage)

  • Assigned to eleonel
  • Status changed to Needs review over 1 year ago
  • 🇯🇵Japan eleonel Itoshima 🇯🇵

    Hi,

    I'm not able to replicate the issue using the latest version of the augmentor module (1.0.1) and the latest version of this module.

    Please check my setup:

    I installed the module and then under I created a ChatGPT augmentor from /admin/config/augmentors

    The configuration of the augmentor is

    Then in an article content type I created a new Augmentor field and under the form configuration I choose the following widget and config:

    With that setup then I went to a node of article content type and I tested the new chat button entering some question in the source field (body)

    and I can see the response is correct by looking at the target field (introduction):

    Could you please try again using the same latest modules and conf?

  • 🇷🇺Russia allexim

    (as for me) dear @eleonel, i will try it within next 24 hours.

  • 🇯🇵Japan eleonel Itoshima 🇯🇵

    Hi @allexim I think we already solved the issue about the The "field_token_value_text" plugin does not exist error, could you please try again?

  • 🇷🇺Russia allexim

    Hi @eleonel!
    I have updated both the module and sub-module:

    • php81 /usr/local/bin/composer81 require 'drupal/augmentor_chatgpt:1.0.x-dev@dev'
    • Upgrading drupal/augmentor_chatgpt (1.0.0-alpha1 => dev-1.0.x 39eef82)

    • php81 /usr/local/bin/composer81 require 'drupal/augmentor:^1.0'
    • Upgrading drupal/augmentor (1.0.1 => 1.0.4): Extracting archive

    But

    "field_token_value_text" plugin does not exist.

    has not disappeared.

  • Status changed to Fixed over 1 year ago
  • 🇯🇵Japan eleonel Itoshima 🇯🇵

    Awesome!

  • Issue was unassigned.
  • Status changed to Closed: duplicate over 1 year ago
  • 🇮🇳India naveenvalecha New Delhi

    Marking this as a duplicate of 🐛 There was a problem creating field Field Augmentor Test: The "field_token_value_text" plugin does not exist. Fixed
    This problem was due to Augmentor module.

  • Production build 0.71.5 2024