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": { "temperature": {
"description": "Temperature value.", "description": "Temperature value.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"tfs": { "tfs": {
@ -142,13 +142,13 @@
"dynatemp_range": { "dynatemp_range": {
"default": 0, "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.", "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" "type": "number"
}, },
"smoothing_factor": { "smoothing_factor": {
"default": 0, "default": 0,
"description": "Modifies temperature behavior. If greater than 0 uses smoothing factor.", "description": "Modifies temperature behavior. If greater than 0 uses smoothing factor.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"dynatemp_exponent": { "dynatemp_exponent": {
@ -164,12 +164,12 @@
}, },
"mirostat_tau": { "mirostat_tau": {
"description": "KoboldCpp ONLY. Mirostat tau value.", "description": "KoboldCpp ONLY. Mirostat tau value.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"mirostat_eta": { "mirostat_eta": {
"description": "KoboldCpp ONLY. Mirostat eta value.", "description": "KoboldCpp ONLY. Mirostat eta value.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"genkey": { "genkey": {
@ -227,17 +227,17 @@
}, },
"dry_multiplier": { "dry_multiplier": {
"description": "KoboldCpp ONLY. DRY multiplier value, 0 to disable.", "description": "KoboldCpp ONLY. DRY multiplier value, 0 to disable.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"dry_base": { "dry_base": {
"description": "KoboldCpp ONLY. DRY base value.", "description": "KoboldCpp ONLY. DRY base value.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"dry_allowed_length": { "dry_allowed_length": {
"description": "KoboldCpp ONLY. DRY allowed length value.", "description": "KoboldCpp ONLY. DRY allowed length value.",
"exclusiveMinimum": 0, "minimum": 0,
"type": "number" "type": "number"
}, },
"dry_sequence_breakers": { "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)", "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": [ "tags": [
"v1" "v1"
] ],
"responses": {"default": {"description": ""}}
} }
}, },
"/v1/chat/completions": { "/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)", "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": [ "tags": [
"v1" "v1"
] ],
"responses": {"default": {"description": ""}}
} }
}, },
"/v1/models": { "/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)", "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": [ "tags": [
"v1" "v1"
] ],
"responses": {"default": {"description": ""}}
} }
}, },
"/v1/audio/transcriptions": { "/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)", "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": [ "tags": [
"v1" "v1"
] ],
"responses": {"default": {"description": ""}}
} }
}, },
}, },