Skip to content

Commit

Permalink
toggle for non standard fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Sep 25, 2024
1 parent 89b1ce2 commit aebe229
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) != '{}')
{
Expand Down Expand Up @@ -18023,11 +18024,13 @@
<button type="button" class="btn btn-primary" style="display:inline;width:105px;" id="oaiusecustom" onclick="select_custom_oai_model()">Use Custom</button>
<div style="display:inline-flex">
<div><input type="checkbox" id="oaiaddversion" title="Add Endpoint Version Number" onchange="" checked>
<div class="box-label">Add Version Num</div></div>
<div class="box-label">Add Ver. Num</div></div>
<div><input type="checkbox" id="oaistreaming" title="Enable SSE Streaming" onchange="">
<div class="box-label">Streaming</div></div>
<div><input type="checkbox" id="useoaichatcompl" title="Use ChatCompletions API" onchange="toggleoaichatcompl()">
<div class="box-label" id="useoaichatcompllabel">ChatCompletions API</div></div>
<div class="box-label">Chat-Completions API</div></div>
<div><input type="checkbox" id="useoainonstandard" title="Send Non-Standard Fields">
<div class="box-label">Non-Standard Fields</div></div>
</div>
<span id="useoaichatcomplbox" class="hidden" onload="toggleoaichatcompl();">
<br>
Expand Down

0 comments on commit aebe229

Please sign in to comment.