Add client info to llm action tracking
This adds the client information to our AI action tracking by passing forward the user agent and parsing it. For now we only distinguish between vscode and web.
显示
- config/events/perform_completion_worker.yml 21 个添加, 0 个删除config/events/perform_completion_worker.yml
- ee/app/graphql/mutations/ai/action.rb 1 个添加, 0 个删除ee/app/graphql/mutations/ai/action.rb
- ee/app/services/llm/base_service.rb 1 个添加, 1 个删除ee/app/services/llm/base_service.rb
- ee/app/workers/llm/completion_worker.rb 3 个添加, 13 个删除ee/app/workers/llm/completion_worker.rb
- ee/lib/gitlab/llm/ai_message.rb 1 个添加, 0 个删除ee/lib/gitlab/llm/ai_message.rb
- ee/lib/gitlab/llm/ai_message_context.rb 2 个添加, 1 个删除ee/lib/gitlab/llm/ai_message_context.rb
- ee/lib/gitlab/llm/tracking.rb 27 个添加, 0 个删除ee/lib/gitlab/llm/tracking.rb
- ee/spec/factories/ai_messages.rb 2 个添加, 0 个删除ee/spec/factories/ai_messages.rb
- ee/spec/graphql/mutations/ai/action_spec.rb 7 个添加, 6 个删除ee/spec/graphql/mutations/ai/action_spec.rb
- ee/spec/lib/gitlab/llm/ai_message_context_spec.rb 2 个添加, 1 个删除ee/spec/lib/gitlab/llm/ai_message_context_spec.rb
- ee/spec/lib/gitlab/llm/tracking_spec.rb 70 个添加, 0 个删除ee/spec/lib/gitlab/llm/tracking_spec.rb
- ee/spec/requests/api/graphql/mutations/projects/generate_commit_message_spec.rb 1 个添加, 1 个删除...raphql/mutations/projects/generate_commit_message_spec.rb
- ee/spec/workers/llm/completion_worker_spec.rb 6 个添加, 2 个删除ee/spec/workers/llm/completion_worker_spec.rb
加载中
想要评论请 注册 或 登录