add Instruction to Completion Presets

This commit is contained in:
josc146
2023-06-02 23:53:25 +08:00
parent 5b98b5c0a7
commit 391c067250
2 changed files with 14 additions and 0 deletions

View File

@@ -101,6 +101,19 @@ export const defaultPresets: CompletionPreset[] = [{
injectStart: '\\n\\nAlice: ',
injectEnd: '\\n\\nBob: '
}
}, {
name: 'Instruction',
prompt: 'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n# Instruction:\nExplain the following metaphor: Life is like cats.\n\n# Response:\n',
params: {
maxResponseToken: 500,
temperature: 1.2,
topP: 0.5,
presencePenalty: 0.4,
frequencyPenalty: 0.4,
stop: '',
injectStart: '',
injectEnd: ''
}
}, {
name: 'Blank',
prompt: '',