2024-05-13 11:46:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class LlmModel < ActiveRecord::Base
|
|
|
|
def tokenizer_class
|
|
|
|
tokenizer.constantize
|
|
|
|
end
|
|
|
|
end
|
2024-05-21 12:35:50 -04:00
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: llm_models
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# display_name :string
|
|
|
|
# name :string not null
|
|
|
|
# provider :string not null
|
|
|
|
# tokenizer :string not null
|
|
|
|
# max_prompt_tokens :integer not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
# url :string
|
|
|
|
# api_key :string
|
|
|
|
#
|