Skip to content

Add extended completions

Baodong请求将feat/llm/completions-factory合并到main-jh

What does this MR do and why?

Extend Gitlab::Llm::CompletionsFactory for JH.

This MR extracts common logic for MRs:

::Gitlab::Llm::ClientFactory.ai_provider is the option entry of AI provider, through ::Settings.gitlab['ai_provider'].

Gitlab::Llm::CompletionsFactory allows each specific provider (such as ChatGLM or other AI provider) to provide alternative implementations.

Screenshots or screen recordings

Non UI

How to set up and validate locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Baodong 编辑于

合并请求报告