Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-05-11 19:08:19 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/lib/configuration/persona_enumerator.rb

20 lines
391 B
Ruby
Raw Normal View History

FEATURE: Discord Bot integration (#831) This adds support for the a Discord bot that can search in a Discourse instance when invoked via slash commands in Discord Guild channel.
2024-10-16 12:41:18 -03:00
# frozen_string_literal: true
require "enum_site_setting"
module DiscourseAi
module Configuration
class PersonaEnumerator < ::EnumSiteSetting
def self.valid_value?(val)
true
end
def self.values
FEATURE: Personas powered summaries. (#1232) * REFACTOR: Move personas into it's own module. * WIP: Use personas for summarization * Prioritize persona default LLM or fallback to newest one * Simplify summarization strategy * Keep ai_sumarization_model as a fallback
2025-04-02 12:54:47 -03:00
AiPersona
.all_personas(enabled_only: false)
.map { |persona| { name: persona.name, value: persona.id } }
FEATURE: Discord Bot integration (#831) This adds support for the a Discord bot that can search in a Discourse instance when invoked via slash commands in Discord Guild channel.
2024-10-16 12:41:18 -03:00
end
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 145ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API