Create GraphQL endpoint for Explain Vulnerability
The endpoint accepts a global id, performs a request to ChatGPT and returns the result Changelog: added EE: true MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117472
显示
- doc/api/graphql/reference/index.md 9 个添加, 0 个删除doc/api/graphql/reference/index.md
- ee/app/graphql/types/ai/explain_vulnerability_input_type.rb 9 个添加, 0 个删除ee/app/graphql/types/ai/explain_vulnerability_input_type.rb
- ee/app/models/ee/vulnerability.rb 6 个添加, 0 个删除ee/app/models/ee/vulnerability.rb
- ee/app/models/vulnerabilities/finding.rb 34 个添加, 0 个删除ee/app/models/vulnerabilities/finding.rb
- ee/app/policies/vulnerability_policy.rb 1 个添加, 0 个删除ee/app/policies/vulnerability_policy.rb
- ee/app/services/llm/execute_method_service.rb 1 个添加, 0 个删除ee/app/services/llm/execute_method_service.rb
- ee/app/services/llm/explain_vulnerability_service.rb 18 个添加, 0 个删除ee/app/services/llm/explain_vulnerability_service.rb
- ee/lib/gitlab/llm/open_ai/completions/explain_vulnerability.rb 42 个添加, 0 个删除...b/gitlab/llm/open_ai/completions/explain_vulnerability.rb
- ee/lib/gitlab/llm/open_ai/completions/factory.rb 4 个添加, 0 个删除ee/lib/gitlab/llm/open_ai/completions/factory.rb
- ee/lib/gitlab/llm/open_ai/response_service.rb 1 个添加, 1 个删除ee/lib/gitlab/llm/open_ai/response_service.rb
- ee/lib/gitlab/llm/open_ai/templates/explain_vulnerability.rb 86 个添加, 0 个删除ee/lib/gitlab/llm/open_ai/templates/explain_vulnerability.rb
- ee/spec/lib/gitlab/llm/open_ai/completions/explain_vulnerability_spec.rb 137 个添加, 0 个删除...lab/llm/open_ai/completions/explain_vulnerability_spec.rb
- ee/spec/lib/gitlab/llm/open_ai/templates/explain_vulnerability_spec.rb 104 个添加, 0 个删除...itlab/llm/open_ai/templates/explain_vulnerability_spec.rb
- ee/spec/models/ee/vulnerability_spec.rb 52 个添加, 0 个删除ee/spec/models/ee/vulnerability_spec.rb
- ee/spec/models/vulnerabilities/finding_spec.rb 40 个添加, 0 个删除ee/spec/models/vulnerabilities/finding_spec.rb
- ee/spec/policies/vulnerability_policy_spec.rb 4 个添加, 1 个删除ee/spec/policies/vulnerability_policy_spec.rb
- ee/spec/services/llm/execute_method_service_spec.rb 1 个添加, 0 个删除ee/spec/services/llm/execute_method_service_spec.rb
- ee/spec/services/llm/explain_vulnerability_service_spec.rb 65 个添加, 0 个删除ee/spec/services/llm/explain_vulnerability_service_spec.rb
加载中
想要评论请 注册 或 登录