Skip to content

Add LLM client factory

Baodong请求将feat/ai/client-factory合并到main-jh

What does this MR do and why?

Add JH LLM client factory.

It is the factory class for JH AI providers to create clients.

Its default AI provider is chat_glm ( without any config ).

And, allows to configure the default AI provider of the GitLab instance through gitlab.yml.

Yaml format is as follows:

production: &base
  ## GitLab settings
  gitlab:
    ai_provider: chat_glm

Screenshots or screen recordings

Non-UI

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 编辑于

合并请求报告

加载中