mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-08 20:44:42 +00:00
62fc7d6ed0
This PR introduces the concept of "LlmModel" as a new way to quickly add new LLM models without making any code changes. We are releasing this first version and will add incremental improvements, so expect changes. The AI Bot can't fully take advantage of this feature as users are hard-coded. We'll fix this in a separate PR.s
15 lines
362 B
Ruby
15 lines
362 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateLlmModelTable < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :llm_models do |t|
|
|
t.string :display_name
|
|
t.string :name, null: false
|
|
t.string :provider, null: false
|
|
t.string :tokenizer, null: false
|
|
t.integer :max_prompt_tokens, null: false
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|