Fix main-jh pipeline sync issue on integration
What does this MR do and why?
Fix main-jh pipeline sync issue on integration
Failed job:
- https://jihulab.com/gitlab-cn/gitlab/-/jobs/9224019
- https://jihulab.com/gitlab-cn/gitlab/-/jobs/9223851
- https://jihulab.com/gitlab-cn/gitlab/-/jobs/9223852
Upstream removed integration#default_fields mothod and refactor the #fields mothod, the details can be found here: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/130263/diffs
Main change is in app/models/integrations/base_chat_notification.rb
rspec ./jh/spec/lib/gitlab/llm/chat_glm/completions/generate_test_file_spec.rb:28 # Gitlab::Llm::ChatGlm::Completions::GenerateTestFile#execute with valid params performs the ChatGLM request
rspec ./jh/spec/lib/gitlab/llm/chat_glm/completions/generate_test_file_spec.rb:67 # Gitlab::Llm::ChatGlm::Completions::GenerateTestFile#execute with request error renders error msg
Failed job: https://jihulab.com/gitlab-cn/gitlab/-/jobs/9228131
Changes from Upstream MR: Add ability to stream chat responses
The streamed chunks get send over aiCompletionResponse but the order is not guaranteed on the client. Each chunk has a chunkId which has a guaranteed order, starting with 1.
由 xfyuan 编辑于