fixed swagger

This commit is contained in:
Concedo 2024-08-25 23:29:55 +08:00
parent 7bc87e1f0f
commit efb8be013e

View file

@ -97,7 +97,7 @@
},
"temperature": {
"description": "Temperature value.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"tfs": {
@ -142,13 +142,13 @@
"dynatemp_range": {
"default": 0,
"description": "If greater than 0, uses dynamic temperature. Dynamic temperature range will be between Temp+Range and Temp-Range. If less or equal to 0 , uses static temperature.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"smoothing_factor": {
"default": 0,
"description": "Modifies temperature behavior. If greater than 0 uses smoothing factor.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"dynatemp_exponent": {
@ -164,12 +164,12 @@
},
"mirostat_tau": {
"description": "KoboldCpp ONLY. Mirostat tau value.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"mirostat_eta": {
"description": "KoboldCpp ONLY. Mirostat eta value.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"genkey": {
@ -227,17 +227,17 @@
},
"dry_multiplier": {
"description": "KoboldCpp ONLY. DRY multiplier value, 0 to disable.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"dry_base": {
"description": "KoboldCpp ONLY. DRY base value.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"dry_allowed_length": {
"description": "KoboldCpp ONLY. DRY allowed length value.",
"exclusiveMinimum": 0,
"minimum": 0,
"type": "number"
},
"dry_sequence_breakers": {
@ -1244,7 +1244,8 @@
"description": "Generates text continuations given a prompt.\n\nThis is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/completions](https://platform.openai.com/docs/api-reference/completions)",
"tags": [
"v1"
]
],
"responses": {"default": {"description": ""}}
}
},
"/v1/chat/completions": {
@ -1253,7 +1254,8 @@
"description": "Given a list of messages comprising a conversation, the model will return a response.\n\n This is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/chat](https://platform.openai.com/docs/api-reference/chat)",
"tags": [
"v1"
]
],
"responses": {"default": {"description": ""}}
}
},
"/v1/models": {
@ -1262,7 +1264,8 @@
"description": "List and describe the various models available in the API.\n\n This is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/models](https://platform.openai.com/docs/api-reference/models)",
"tags": [
"v1"
]
],
"responses": {"default": {"description": ""}}
}
},
"/v1/audio/transcriptions": {
@ -1271,7 +1274,8 @@
"description": "Transcribes a wav file with speech to text using loaded Whisper model.\n\n This is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/audio/createTranscription](https://platform.openai.com/docs/api-reference/audio/createTranscription)",
"tags": [
"v1"
]
],
"responses": {"default": {"description": ""}}
}
},
},