mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
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>
14 lines
320 B
Ruby
14 lines
320 B
Ruby
# 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
|