Module: LexLLM::ActiveRecord::ModelMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/lex_llm/active_record/model_methods.rb
Overview
Methods mixed into model registry models.
Instance Method Summary collapse
Instance Method Details
#to_llm ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/lex_llm/active_record/model_methods.rb', line 52 def to_llm LexLLM::Model::Info.new( id: model_id, name: name, provider: provider, family: family, created_at: model_created_at, context_window: context_window, max_output_tokens: max_output_tokens, knowledge_cutoff: knowledge_cutoff, modalities: modalities&.deep_symbolize_keys || {}, capabilities: capabilities, pricing: pricing&.deep_symbolize_keys || {}, metadata: &.deep_symbolize_keys || {} ) end |