Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 4d1798c

Browse files
committed
add new rag_llm_model_id which is used for ocr
1 parent ace9f94 commit 4d1798c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

app/models/ai_persona.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def allowed_seeded_model
378378
# allow_topic_mentions :boolean default(FALSE), not null
379379
# allow_personal_messages :boolean default(TRUE), not null
380380
# force_default_llm :boolean default(FALSE), not null
381+
# rag_llm_model_id :bigint
381382
#
382383
# Indexes
383384
#

app/models/ai_tool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,4 @@ def self.presets
371371
# rag_chunk_tokens :integer default(374), not null
372372
# rag_chunk_overlap_tokens :integer default(10), not null
373373
# tool_name :string(100) default(""), not null
374-
#
374+
# rag_llm_model_id :bigint
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
class AddRagLlmModel < ActiveRecord::Migration[7.2]
3+
def change
4+
add_column :ai_personas, :rag_llm_model_id, :bigint
5+
add_column :ai_tools, :rag_llm_model_id, :bigint
6+
end
7+
end

0 commit comments

Comments
 (0)