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-07-10 08:03:28 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/db/migrate/20230519003106_post_custom_prompts.rb

14 lines
320 B
Ruby
Raw Permalink Normal View History

FEATURE: add support for GPT <-> Forum integration This change-set connects GPT based chat with the forum it runs on. Allowing it to perform search, lookup tags and categories and summarize topics. The integration is currently restricted to public portions of the forum. Changes made: - Do not run ai reply job for small actions - Improved composable system prompt - Trivial summarizer for topics - Image generator - Google command for searching via Google - Corrected trimming of posts raw (was replacing with numbers) - Bypass of problem specs The feature works best with GPT-4 --------- Co-authored-by: Roman Rizzi <rizziromanalejandro@gmail.com>
2023-05-20 17:45:54 +10:00
# frozen_string_literal: true
class PostCustomPrompts < ActiveRecord::Migration[7.0]
def change
create_table :post_custom_prompts do |t|
t.integer :post_id, null: false
t.json :custom_prompt, null: false
t.timestamps
end
add_index :post_custom_prompts, :post_id, unique: true
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 66ms Template: 2ms
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