Skip to content

Add aiSelfHostedModelFeatureSettings query

What does this MR do and why?

Related to #476257 (closed)

In this MR, we:

  • Add aiSelfHostedModelFeatureSettings query to fetch self-hosted model features

Screenshots or screen recordings

Success: Screenshot_2024-09-17_at_13.23.59
Errors: Screenshot_2024-09-17_at_13.23.50

Screenshot_2024-09-17_at_13.24.23

Screenshot_2024-09-17_at_13.24.39

How to set up and validate locally

  • As an admin on a self-managed instance
  • With self-hosted models enabled Feature.enable(:ai_custom_model)
  • Perform the following query:
query {
  aiSelfHostedModelFeatureSettings(selfHostedModelId: "gid://gitlab/Ai::SelfHostedModel/$ID") {
    edges {
      node {
        feature
        provider
      }
    }
  }
}

Merge request reports

Loading