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-19 23:04:41 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/lib/modules/ai_helper/entry_point.rb

18 lines
398 B
Ruby
Raw Normal View History

FEATURE: Composer AI helper (#8) * FEATURE: Composer AI helper This change introduces a new composer button for the group members listed in the `ai_helper_allowed_groups` site setting. Users can use chatGPT to review, improve, or translate their posts to English. * Add a safeguard for PMs and don't rely on parentView
2023-03-15 17:02:20 -03:00
# frozen_string_literal: true
module DiscourseAi
module AiHelper
class EntryPoint
def load_files
require_relative "open_ai_prompt"
end
def inject_into(plugin)
REFACTOR: Store prompts in a dedicated table. (#14) This change makes it easier to add new prompts to our AI helper. We don't have a UI for it yet. You'll have to do it through a console.
2023-03-17 15:14:19 -03:00
plugin.register_seedfu_fixtures(
Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai-helper"),
)
FEATURE: Composer AI helper (#8) * FEATURE: Composer AI helper This change introduces a new composer button for the group members listed in the `ai_helper_allowed_groups` site setting. Users can use chatGPT to review, improve, or translate their posts to English. * Add a safeguard for PMs and don't rely on parentView
2023-03-15 17:02:20 -03:00
plugin.register_svg_icon("magic")
end
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 37ms Template: 1ms
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