Made the frontend more flexible to also support other models than just Koala

This commit is contained in:
Julian Müller (ChaoticByte) 2023-05-18 15:54:41 +02:00
parent c3fda61b21
commit 7590c31f89
3 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ fetch("/config")
async function apiCompletion(prompt, settings) {
const bodyData = JSON.stringify({
"prompt": prompt,
"stop": [frontend_config.profile.stop_sequence],
"stop": frontend_config.profile.stop_sequences,
"max_tokens": settings.max_tokens,
"temperature": settings.temperature,
"top_p": settings.top_p,