mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-10 21:44:42 +00:00
* DRAFT: Create AI Bot users dynamically and support custom LlmModels * Get user associated to llm_model * Track enabled bots with attribute * Don't store bot username. Minor touches to migrate default values in settings * Handle scenario where vLLM uses a SRV record * Made 3.5-turbo-16k the default version so we can remove hack
8 lines
198 B
Ruby
8 lines
198 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAi::AiBot::SiteSettingsExtension
|
|
def self.enable_or_disable_ai_bots
|
|
LlmModel.find_each { |llm_model| llm_model.toggle_companion_user }
|
|
end
|
|
end
|