DEV: Use negative ids for seeded prompts. (#16)

This makes easier to add new defaults in the feature without clashing with user created ones.
This commit is contained in:
Roman Rizzi 2023-03-17 15:44:45 -03:00 committed by GitHub
parent 01a08f41cf
commit 258eb7e78f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
CompletionPrompt.seed do |cp|
cp.id = 1
cp.id = -1
cp.name = "translate"
cp.prompt_type = CompletionPrompt.prompt_types[:text]
cp.value = <<~STRING
@ -14,7 +14,7 @@ CompletionPrompt.seed do |cp|
end
CompletionPrompt.seed do |cp|
cp.id = 2
cp.id = -2
cp.name = "generate_titles"
cp.prompt_type = CompletionPrompt.prompt_types[:list]
cp.value = <<~STRING
@ -26,7 +26,7 @@ CompletionPrompt.seed do |cp|
end
CompletionPrompt.seed do |cp|
cp.id = 3
cp.id = -3
cp.name = "proofread"
cp.prompt_type = CompletionPrompt.prompt_types[:diff]
cp.value = <<~STRING