Add streaming capabilities for chat
This adds the capabilities to stream messages for GitLab Duo chat. 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`. Changelog: changed EE: true
显示
- doc/api/graphql/reference/index.md 1 个添加, 0 个删除doc/api/graphql/reference/index.md
- ee/app/graphql/subscriptions/ai_completion_response.rb 2 个添加, 1 个删除ee/app/graphql/subscriptions/ai_completion_response.rb
- ee/app/graphql/types/ai/ai_response_type.rb 5 个添加, 0 个删除ee/app/graphql/types/ai/ai_response_type.rb
- ee/config/feature_flags/development/stream_gitlab_duo.yml 8 个添加, 0 个删除ee/config/feature_flags/development/stream_gitlab_duo.yml
- ee/lib/gitlab/llm/chain/agents/zero_shot/executor.rb 31 个添加, 3 个删除ee/lib/gitlab/llm/chain/agents/zero_shot/executor.rb
- ee/lib/gitlab/llm/chain/concerns/ai_dependent.rb 2 个添加, 2 个删除ee/lib/gitlab/llm/chain/concerns/ai_dependent.rb
- ee/lib/gitlab/llm/chain/plain_response_modifier.rb 21 个添加, 0 个删除ee/lib/gitlab/llm/chain/plain_response_modifier.rb
- ee/lib/gitlab/llm/chain/requests/anthropic.rb 20 个添加, 4 个删除ee/lib/gitlab/llm/chain/requests/anthropic.rb
- ee/lib/gitlab/llm/chain/streamed_answer.rb 47 个添加, 0 个删除ee/lib/gitlab/llm/chain/streamed_answer.rb
- ee/lib/gitlab/llm/completions/chat.rb 11 个添加, 4 个删除ee/lib/gitlab/llm/completions/chat.rb
- ee/lib/gitlab/llm/graphql_subscription_response_service.rb 2 个添加, 1 个删除ee/lib/gitlab/llm/graphql_subscription_response_service.rb
- ee/spec/lib/gitlab/llm/chain/agents/zero_shot/executor_spec.rb 85 个添加, 46 个删除...ec/lib/gitlab/llm/chain/agents/zero_shot/executor_spec.rb
- ee/spec/lib/gitlab/llm/chain/concerns/ai_dependent_spec.rb 30 个添加, 11 个删除ee/spec/lib/gitlab/llm/chain/concerns/ai_dependent_spec.rb
- ee/spec/lib/gitlab/llm/chain/plain_response_modifier_spec.rb 19 个添加, 0 个删除ee/spec/lib/gitlab/llm/chain/plain_response_modifier_spec.rb
- ee/spec/lib/gitlab/llm/chain/requests/anthropic_spec.rb 63 个添加, 12 个删除ee/spec/lib/gitlab/llm/chain/requests/anthropic_spec.rb
- ee/spec/lib/gitlab/llm/chain/streamed_answer_spec.rb 47 个添加, 0 个删除ee/spec/lib/gitlab/llm/chain/streamed_answer_spec.rb
- ee/spec/lib/gitlab/llm/completions/chat_spec.rb 38 个添加, 3 个删除ee/spec/lib/gitlab/llm/completions/chat_spec.rb
- ee/spec/lib/gitlab/llm/completions/summarize_all_open_notes_spec.rb 16 个添加, 3 个删除...b/gitlab/llm/completions/summarize_all_open_notes_spec.rb
- ee/spec/lib/gitlab/llm/graphql_subscription_response_service_spec.rb 2 个添加, 1 个删除.../gitlab/llm/graphql_subscription_response_service_spec.rb
- ee/spec/lib/gitlab/llm/open_ai/completions/generate_test_file_spec.rb 2 个添加, 1 个删除...gitlab/llm/open_ai/completions/generate_test_file_spec.rb
加载中
想要评论请 注册 或 登录