Refactor DocsCllient to use CloudConnector::AvailableServices
What does this MR do and why?
Part of: https://gitlab.com/groups/gitlab-org/-/epics/12556+
Refactor the code to utilize CloudConnector::AvailableServices
, for both Gitlab.com and Self-managed instances for for DocsClient features
Our goal is to decouple how add-ons are bundled with the features/services.
- Replaces
AiGateway::LLM::Client.access_token
withCloudConnecor::AvailableServices.find_by_name(:duo_chat).access_token(user)
- Adds :documentation_search UP to access_data.yml file
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.
Edited by Nikola Milojevic