Skip to content

Allow to push feature flags to AI gateway

Shinya Maeda requested to merge support-feature-flags-in-ai-gateway into master

What does this MR do and why?

This MR allows us to adopt the Feature flags in the development of GitLab workflow in AI Gateway, which is a crucial piece for safe deployment by gradually rolling out the change to end-users.

Related to Create a sustainable 'feature flag' option for ... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#555 - closed)

AI Gateway counterpart: feat: support feature flags (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!1235 - merged)

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.

How to set up and validate locally

  1. Checkout Allow to push feature flags to AI gateway (!163282 - merged)
  2. Follow !163282 (diffs): 2. Push a feature flag from GitLab-Rails/Sidekiq. i.e. Gitlab::AiGateway.push_feature_flag(:new_prompt_template, user) 3. Use the feature flag in AI Gateway. i.e. if feature_flags.is_enabled("new_prompt_template").
  3. gdk start
  4. Execute a Duo Chat feature and confirm that the flag state in AI Gateway reflects the flag state in GitLab-Rails.
  5. You can also confirm in the ai-gateway.log.
Edited by Shinya Maeda

Merge request reports

Loading