Needs review
Project:
Microsoft Azure AI
Version:
1.2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
17 Oct 2025 at 13:45 UTC
Updated:
4 Feb 2026 at 12:31 UTC
Jump to comment: Most recent
There has been a lot of similar code in OpenAI type of provider modules. That's bad for maintainability for instance.
Make AzureProvider extend OpenAiBasedProviderClientBase and remove all the code that can be inherited from the base class.
Figure out a way to work around the incompatibilities of getClient() and loadClient() calls - that's where some of the custom Azure specifics live.
I think we can do that.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jhuhta commentedComment #7
jhuhta commentedComment #8
marcus_johansson commentedCode looks good and tested against one chat provider.
However, it needs to be pinned to Drupal AI 1.2.0, since that's where the OpenAI base class resides.
Comment #9
jhuhta commentedMaybe we should also bump the version of this module to 1.2.x-dev.
Comment #10
jhuhta commented