Skip to content

AI connectors do not accept keys when the "AI Plugin" is enabled in Playground #3680

@jcamp

Description

@jcamp

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

The AI API connectors do not accept keys when the "AI Plugin" is enabled in Playground.

You can add the API keys which are accepted. When you then enable the AI Plugin the connectors go back to "Setup mode" and will not accept API keys unless you disable the AI Plugin.

Expected behavior

Add the API keys, enable the AI Plugin. Use AI in WordPress

Actual behavior

Add the API Keys, enable the AI plugin. Go to (for example) create an AI Image. You get an error with API. You to the API Keys page and they all display "Setup" e.g. you need to setup the API keys. If you reenter the API keys you get an error message.

"The AI plugin requires a valid AI Connector to function properly. Please review the AI Connectors you have configured to ensure they are valid."

Steps to reproduce

  1. Go to API keys
  2. Enter API keys (they are all accepted)
  3. Top of screen enable "AI Plugin"
  4. Goto (for example) images and add an AI image
  5. Error with API keys
  6. Goto to API Keys screen
  7. All API keys are reset back to "Setup"
  8. Try to enter API keys - Error when adding API Keys

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only this plugin is active.
  • This bug happens with a default WordPress theme active.
  • I can reproduce this bug consistently using the steps above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions