Commit e0543756 authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

move prompt template to server

parent dd3c713c
...@@ -14,11 +14,7 @@ async function completion(prompt: string, callback: (res: string) => void) { ...@@ -14,11 +14,7 @@ async function completion(prompt: string, callback: (res: string) => void) {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify({ body: JSON.stringify({
prompt: `A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions. prompt: prompt,
### Human: Hello, Assistant.
### Assistant: Hello. How may I help you today?
### Human: ${prompt}`,
model: 'ggml-model-q4_0', model: 'ggml-model-q4_0',
}), }),
}) })
......
{ {
"alpaca": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{prompt}\n\n### Response:\n\n", "alpaca": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{prompt}\n\n### Response:\n\n",
"ggml": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n\n### Human: Hello, Assistant.\n### Assistant: Hello. How may I help you today?\n### Human: ${prompt}",
"gpt4": "### Instruction:\n{prompt}\n\n### Response:\n", "gpt4": "### Instruction:\n{prompt}\n\n### Response:\n",
"hermes": "### Instruction:\n{prompt}\n\n### Response:\n", "hermes": "### Instruction:\n{prompt}\n\n### Response:\n",
"oasst": "{prompt}", "oasst": "{prompt}",
...@@ -7,7 +8,5 @@ ...@@ -7,7 +8,5 @@
"qlora": "### Human: {prompt}\n### Assistant:", "qlora": "### Human: {prompt}\n### Assistant:",
"tulu": "\n{prompt}\n\n(include newline)", "tulu": "\n{prompt}\n\n(include newline)",
"vicuna": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nUSER: {prompt}\nASSISTANT:", "vicuna": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nUSER: {prompt}\nASSISTANT:",
"wizardlm-13b": "{prompt}\n\n### Response:", "wizardlm": "{prompt}\n\n### Response:"
"wizardlm-30b": "{prompt}\n\n### Response:",
"wizardlm-7b": "{prompt}\n\n### Response:"
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment