"Advanced" Automated input mode not available when Token module is enabled

Created on 30 August 2024, 21 days ago
Updated 13 September 2024, 7 days ago

Problem/Motivation

With Token module enabled, I expected to be able to select the "Advanced" "Automator Input Mode" in the "AI Automator Settings" section of a field configuration form.

Unfortunately, only "Base mode" was available.

Steps to reproduce

Drupal 11, the latest -dev of the AI module, and version 8.x-1.15 of Token. Using the "Unstructured API: File to text" automator type.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

AI Automators

Created by

πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

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

Comments & Activities

  • Issue created by @ultimike
  • πŸ‡©πŸ‡ͺGermany Marcus_Johansson

    @ultimike - that is usually the default mode for none textual input in automator types. They usually don't take advanced mode. The Unstructured API: File to text takes one or many files from a field and outputs the content of those to one or many long text fields.

    Was your idea with the advanced mode to use Tokens to provide a token that renders the file entity urls?

    Alternatively if you select any of modes that takes textual input, like the AI: Text Long that will have an advanced mode. (Its the replacement of the previous OpenAI Text Long Rule in Interpolator)

  • πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

    @marcus_johansson - I didn't have anything specific in mind, I just thought it was odd that I couldn't access advanced mode even though I had token module installed.

    I didn't realize that access to advanced mode was dependent on the automator type.

    -mike

  • πŸ‡©πŸ‡ͺGermany Marcus_Johansson

    @ultimike - I'm going through bug backlog, would it be ok to close this issue?

  • πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

    I think you may want to considering updating the help text, as it doesn't feel complete to me. The fact that Advanced mode is dependent on not only the Token module being available but also the Automator type probably warrants additional help text. Know what I mean?

    -mike

  • πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA
  • Status changed to Needs review 12 days ago
  • πŸ‡©πŸ‡ͺGermany Marcus_Johansson

    Ah, yes, that description was bad. I have made a description that is based on if Advanced mode is available now instead.

    Advanced Mode available:

    The Advanced Mode (Token) is available for this Automator Type to use multiple fields as input, you may also choose Base Mode to choose one base field.

    Advanced Mode not available:

    For this Automator Type, only the Base Mode is available. It uses the base field to generate the content.

    The changes are pushed to 1.0.x-dev release

  • πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

    Perfect!

    thanks,
    -mike

  • Status changed to Fixed 10 days ago
    • marcus_johansson β†’ committed a94be3e1 on issue-3462030-disable-changes-on-edit
      Issue #3471275 by ultimike, marcus_johansson: "Advanced" Automated input...
Production build 0.71.5 2024