From aebe229b292922ad6ebb7c917aeb3578b0ef41cf Mon Sep 17 00:00:00 2001 From: Concedo Date: Wed, 25 Sep 2024 20:26:17 +0800 Subject: [PATCH] toggle for non standard fields --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 308625a..288d655 100644 --- a/index.html +++ b/index.html @@ -12637,7 +12637,7 @@ //mistral api does not support presence pen oai_payload.presence_penalty = scaled_rep_pen; } - if(targetep.toLowerCase().includes("featherless.ai")) + if(document.getElementById("useoainonstandard").checked || targetep.toLowerCase().includes("featherless.ai")) { //featherless api supports additional fields, include them oai_payload.top_k = (submit_payload.params.top_k<1?300:submit_payload.params.top_k); @@ -12646,6 +12646,7 @@ { oai_payload.seed = submit_payload.params.sampler_seed; } + oai_payload.top_a = localsettings.top_a; } if(submit_payload.params.logit_bias && JSON.stringify(submit_payload.params.logit_bias) != '{}') { @@ -18023,11 +18024,13 @@
-
Add Version Num
+
Add Ver. Num
Streaming
-
ChatCompletions API
+
Chat-Completions API
+
+
Non-Standard Fields