diff options
Diffstat (limited to 'app/models/merge_request/diff_llm_summary.rb')
-rw-r--r-- | app/models/merge_request/diff_llm_summary.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/merge_request/diff_llm_summary.rb b/app/models/merge_request/diff_llm_summary.rb new file mode 100644 index 00000000000..5e7d80712e2 --- /dev/null +++ b/app/models/merge_request/diff_llm_summary.rb @@ -0,0 +1,13 @@ +# rubocop:disable Style/ClassAndModuleChildren +# frozen_string_literal: true + +class MergeRequest::DiffLlmSummary < ApplicationRecord + belongs_to :merge_request_diff + belongs_to :user, optional: true + + validates :provider, presence: true + validates :content, presence: true, length: { maximum: 2056 } + + enum provider: { openai: 0 } +end +# rubocop:enable Style/ClassAndModuleChildren |