Skip to content

Adapt displayed Code Suggestions probes to backend response

What does this MR do and why?

It renders Code Suggestions according to the probes the backend (see this MR) sends. The main difference is whether the Duo Pro Enterprise license is online/offline.

Screenshots or screen recordings

Online license Offline license
Screenshot_2024-10-03_at_14.18.28 Screenshot_2024-10-03_at_14.16.33

Don't mind the errors, My local LLM setup is just too slow.

How to set up and validate locally

You will need an active GitLab ultimate license.

  1. Start GDK instance in self-managed mode:

GITLAB_SIMULATE_SAAS=0 && gdk start

  1. In the rails console, enable Code Suggestions and the custom models experiment:
Feature.enable(:ai_custom_model)
ApplicationSetting.first.update(duo_features_enabled: true)
  1. Enable the admin ai-powered feature settings FF
Feature.enable(:custom_models_feature_settings_vue_app)

Test it!

  1. Log in as an admin
  2. Visit the page Admin Area > AI-Powered Features > Self-hosted models
  3. Click on 'Run health check'

Related to #491564 (closed)

Edited by Patrick Cyiza

Merge request reports

Loading