Fix Duo Chat messages being saved twice
We support two response handling workflows. The default response handler is always executed, and then there's an optional streaming response handler. Both of them currently save the Chat message, which results in duplicated messages in our Chat storage. To address this, we introduce a new toggle, and only save the message on the default response handler, and skip it on the streaming one
显示
- ee/lib/gitlab/llm/completions/chat.rb 2 个添加, 1 个删除ee/lib/gitlab/llm/completions/chat.rb
- ee/lib/gitlab/llm/graphql_subscription_response_service.rb 5 个添加, 3 个删除ee/lib/gitlab/llm/graphql_subscription_response_service.rb
- ee/lib/gitlab/llm/response_service.rb 3 个添加, 2 个删除ee/lib/gitlab/llm/response_service.rb
- ee/spec/lib/gitlab/llm/completions/chat_spec.rb 1 个添加, 1 个删除ee/spec/lib/gitlab/llm/completions/chat_spec.rb
- ee/spec/lib/gitlab/llm/graphql_subscription_response_service_spec.rb 23 个添加, 15 个删除.../gitlab/llm/graphql_subscription_response_service_spec.rb
- ee/spec/lib/gitlab/llm/response_service_spec.rb 5 个添加, 2 个删除ee/spec/lib/gitlab/llm/response_service_spec.rb
加载中
想要评论请 注册 或 登录