Skip to content

Fetch available models in agentic chat panel

What does this MR do and why?

Fetches available models in the agentic chat panel by querying aiChatAvailableModels.

Introduces a new prop rootNamespaceId, as namespaceId is null when using agentic chat in non-Group page.

References

https://gitlab.com/gitlab-org/gitlab/-/issues/569406+

Screenshots or screen recordings

Disabled Enabled

disabled

Group:

enabled

Project:

project.mov

MR:

mr.mov

How to set up and validate locally

  • Disable the ai_user_model_switching flag
  • Open the agentic chat panel, note that the query is not called
  • Enable the ai_user_model_switching flag
  • Open the agentic chat panel and note that the query is called and dropdown options are populated.
  • Ensure this works in different contexts (in a project, in an MR)

MR acceptance checklist

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

Edited by Cindy Halim

Merge request reports

Loading