Correct error in "Develop a third party module" docs

Created on 15 May 2025, 20 days ago

Problem/Motivation

There is an error in the second code block in the "Making simple provider/model selection available" section of the "Develop a third party module" documentation.

Steps to reproduce

See https://project.pages.drupalcode.org/ai/developers/develop_third_party_m...

$ai_provider = \Drupal::service('ai_provider');
$provider_model = $ai_provider->\Drupal::service('ai_provider');

Proposed resolution

In the context of the first codeblock in this section, I believe the second line should be:

$provider_model = $config->get('provider_model');

Remaining tasks

Make the correction

🐛 Bug report
Status

Active

Version

1.1

Component

Documentation

Created by

🇬🇧United Kingdom jofitz

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