mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-06 19:48:15 +00:00
f26adf2cf6
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.
12 lines
242 B
Ruby
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
|