move prompt template to server

This commit is contained in:
Bruce MacDonald
2023-06-26 14:31:49 -04:00
parent dd3c713c1c
commit e0543756b3
2 changed files with 3 additions and 8 deletions

View File

@@ -14,11 +14,7 @@ async function completion(prompt: string, callback: (res: string) => void) {
'Content-Type': 'application/json',
},
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.
### Human: Hello, Assistant.
### Assistant: Hello. How may I help you today?
### Human: ${prompt}`,
prompt: prompt,
model: 'ggml-model-q4_0',
}),
})