discourse-ai/db/post_migrate/20231128151234_recreate_generate_titles_prompt.rb
Roman Rizzi f26adf2cf6
FIX: Use XML tags in generate_titles prompt. (#322)
We must ensure we can isolate titles, and the models sometimes ignore the example we give them.

Additionally, anons can generate HyDE posts, so we need to check if user is nil when attempting to log requests.
2023-11-28 12:52:22 -03:00

12 lines
242 B
Ruby

# frozen_string_literal: true
class RecreateGenerateTitlesPrompt < ActiveRecord::Migration[7.0]
def up
DB.exec("DELETE FROM completion_prompts WHERE id = -302")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end