Skip to content

Add dynamic provider option AI gateway client

What does this MR do and why?

The code changes involve the removal of hard-coded values for the AI model provider and the default model name in the AiGateway::Client class. These values are now dynamically determined based on the availability of models and user preferences. Additionally, a new method, provider, is introduced to retrieve the provider name for a given model. These changes provide more flexibility and allow for future expansion of supported models and providers.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #454544

Edited by Gosia Ksionek

Merge request reports