mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-09 21:14:43 +00:00
* FEATURE: Set endpoint credentials directly from LlmModel. Drop Llama2Tokenizer since we no longer use it. * Allow http for custom LLMs --------- Co-authored-by: Rafael Silva <xfalcox@gmail.com>
8 lines
196 B
Ruby
8 lines
196 B
Ruby
# frozen_string_literal: true
|
|
|
|
class LlmModelSerializer < ApplicationSerializer
|
|
root "llm"
|
|
|
|
attributes :id, :display_name, :name, :provider, :max_prompt_tokens, :tokenizer, :api_key, :url
|
|
end
|