mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
Add logit_bias to the OpenAI api (#577)
* Add logit_bias to the OpenAI api * Cleanup and refactor, test in swagger. --------- Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
This commit is contained in:
+12
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- schema -->
|
||||
<script>
|
||||
let spec = {
|
||||
let spec = {
|
||||
"components": {
|
||||
"schemas": {
|
||||
"BasicError": {
|
||||
@@ -176,7 +176,17 @@
|
||||
"default": false,
|
||||
"description": "KoboldCpp ONLY. If true, also removes detected stop_sequences from the output and truncates all text after them. Does not work with SSE streaming.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"logit_bias": {
|
||||
"default": {},
|
||||
"description": "KoboldCpp ONLY. An dictionary of key-value pairs, which indicate the token IDs (int) and logit bias (float) to apply for that token. Up to 16 value can be provided.",
|
||||
"type": "object",
|
||||
"example": {
|
||||
"2": -20,
|
||||
"145": -1.4,
|
||||
"3105": 3.2
|
||||
},
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
"prompt"
|
||||
|
||||
Reference in New Issue
Block a user