forked from open-webui/open-webui
Settings were being referenced incorrectly and as a result, no settings were being sent to openai endpoint. Added num_predict slider in advanced UI. Also added seed, stop and max_tokens (uses num_predict) being sent to openai endpoint.
This commit is contained in:
parent
87f5e72eeb
commit
431b710e46
5 changed files with 69 additions and 12 deletions
|
@ -395,10 +395,13 @@
|
|||
}
|
||||
: { content: message.content })
|
||||
})),
|
||||
temperature: $settings.temperature ?? undefined,
|
||||
top_p: $settings.top_p ?? undefined,
|
||||
num_ctx: $settings.num_ctx ?? undefined,
|
||||
frequency_penalty: $settings.repeat_penalty ?? undefined
|
||||
seed: $settings.options.seed ?? undefined,
|
||||
stop: $settings.options.stop ?? undefined,
|
||||
temperature: $settings.options.temperature ?? undefined,
|
||||
top_p: $settings.options.top_p ?? undefined,
|
||||
num_ctx: $settings.options.num_ctx ?? undefined,
|
||||
frequency_penalty: $settings.options.repeat_penalty ?? undefined,
|
||||
max_tokens: $settings.options.num_predict ?? undefined,
|
||||
})
|
||||
}
|
||||
).catch((err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue