API Explorer broken due to AiProviderFormHelper

Created on 31 December 2024, 21 days ago

Problem/Motivation

After choosing provider and model the error message Oops, something went wrong. Check your browser's developer console for more details. appears.
The cause for the ajax error: Warning: Undefined array key "chat_ajax_prefix" in Drupal\ai\Service\AiProviderFormHelper::loadModelsAjaxCallback()

The left and right arrays are not recognized by AiProviderFormHelper.

Steps to reproduce

Install API Exporer
Open API Explorer for Chat or Embeddings
Choose provider and model
Look in your logs.

Proposed resolution

Ask in ajax-helper for both array values, too.

🐛 Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇩🇪Germany jan kellermann

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024