Add ChatGlm client and query
What does this MR do and why?
Related issues:
- TOC: https://jihulab.com/jihulab/technical-oversight-committee/-/issues/8
- Generate test file https://jihulab.com/gitlab-cn/gitlab/-/issues/3101
- Summarize merge request changes: https://jihulab.com/gitlab-cn/gitlab/-/issues/3170
We hope to introduce more AI service providers.
This MR has made preparations and produced ChatGLM client and query classes.
ChatGLM API Doc:
- https://open.bigmodel.cn/doc/api
- https://docs.qq.com/doc/DU1B0VW9SWGJuaVdk?u=fac294dfee594b278507379abfb1d292
Follow-ups: The client here only implements the function of sending requests. Compared with the client of OpenAI, it lacks:
- moderate
- track_cost
Screenshots or screen recordings
Non-UI
How to set up and validate locally
- Apply api key from https://maas.aminer.cn/usercenter/apikeys
- Checkout current-branch
- Set ENV variables
CHAT_GLM_API_KEY
- Turn on FF
openai_experimentation
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
由 Baodong 编辑于