Welcome to mirror list, hosted at ThFree Co, Russian Federation.

diff_llm_summary.rb « merge_request « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e7d80712e266947a4983f388feaedefad1228af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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