webui : send both backend_sampling == false/true (#18781)
* webui : send both backend_sampling == false/true * feat: Parameter sync --------- Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
This commit is contained in:
co-authored by
Aleksander Grygier
parent
e9fd96283d
commit
4a05e0c566
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@
|
|||||||
<div style="display: contents">
|
<div style="display: contents">
|
||||||
<script>
|
<script>
|
||||||
{
|
{
|
||||||
__sveltekit_1ppa22i = {
|
__sveltekit_1610ad9 = {
|
||||||
base: new URL('.', location).pathname.slice(0, -1)
|
base: new URL('.', location).pathname.slice(0, -1)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,12 @@ export const SYNCABLE_PARAMETERS: SyncableParameter[] = [
|
|||||||
},
|
},
|
||||||
{ key: 'max_tokens', serverKey: 'max_tokens', type: SyncableParameterType.NUMBER, canSync: true },
|
{ key: 'max_tokens', serverKey: 'max_tokens', type: SyncableParameterType.NUMBER, canSync: true },
|
||||||
{ key: 'samplers', serverKey: 'samplers', type: SyncableParameterType.STRING, canSync: true },
|
{ key: 'samplers', serverKey: 'samplers', type: SyncableParameterType.STRING, canSync: true },
|
||||||
|
{
|
||||||
|
key: 'backend_sampling',
|
||||||
|
serverKey: 'backend_sampling',
|
||||||
|
type: SyncableParameterType.BOOLEAN,
|
||||||
|
canSync: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'pasteLongTextToFileLen',
|
key: 'pasteLongTextToFileLen',
|
||||||
serverKey: 'pasteLongTextToFileLen',
|
serverKey: 'pasteLongTextToFileLen',
|
||||||
|
|||||||
@@ -1610,8 +1610,7 @@ class ChatStore {
|
|||||||
|
|
||||||
if (currentConfig.samplers) apiOptions.samplers = currentConfig.samplers;
|
if (currentConfig.samplers) apiOptions.samplers = currentConfig.samplers;
|
||||||
|
|
||||||
if (currentConfig.backend_sampling)
|
apiOptions.backend_sampling = currentConfig.backend_sampling;
|
||||||
apiOptions.backend_sampling = currentConfig.backend_sampling;
|
|
||||||
|
|
||||||
if (currentConfig.custom) apiOptions.custom = currentConfig.custom;
|
if (currentConfig.custom) apiOptions.custom = currentConfig.custom;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user